Skip to content

[Feature Request] Tiered config default configuration files #37

Description

@toastal

Short Description

Current user UX story: I am a user on a system without root access. My admin has set some default settings, but I need a way to change these for my needs. 1. I don’t have access to the root files & am not savvy enough to be tweaking systemd files to set the configuration. I am however just savvy enough to be told where I need to write a file to knowing that the driver will use my configuration as many of my applications put their text-based configuration files in my $XDG_CONFIG_HOME already.

Proposed solution: Have /etc/asus-dialpad-driver for the administrator defaults as well as read from $XDG_CONFIG_HOME/asus-dialpad-driver (~/.config/asus-dialpad-driver for odd systems not supporting XDG). The application then merges configurations. …I would say this is a pretty common pattern anyhow.

Open question: what is the behavior of passing in the configuration as an argument? Does it override everything? Become the fallback?

New dependencies

Something make XDG a cinch with fallbacks, probably OS agnostic

Additional Info

For NixOS this would be great since now we can declaratively describe the setup as an INI file for etc & then home-manager / pick-your-tool can extend for users wanting declaritive home config… & would simplify the module. Anyone with ambition could easily write a configuration GUI as well for the user-level configuration file if they really wanted.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions