-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gphoto2: Add option for group name #296832
base: master
Are you sure you want to change the base?
Conversation
eafb193
to
e1942fe
Compare
e1942fe
to
9f87ab8
Compare
|
||
let | ||
inherit (nixos {}) config; | ||
group = config.programs.gphoto2.group; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this reference the default value and not the one from the users' nixos config? Maybe it's better to make the option read-only (I think that's possible), so that at least the magic string goes away?
9f87ab8
to
702e47d
Compare
3e7f813
to
9cb19fb
Compare
inherit (nixos {}) options; | ||
group = options.programs.gphoto2.group.value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure that this won't work on none nixos systems. We should probably just make this a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How's the current solution?
9cb19fb
to
f833ab8
Compare
f833ab8
to
bed1cc2
Compare
Enables referencing it in configuration dynamically, rather than with a magic string. Closes NixOS#294871.
bed1cc2
to
c3ee634
Compare
Description of changes
Enables referencing it in configuration dynamically, rather than with a magic string.
Closes #294871.
To do:
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.