-
-
Notifications
You must be signed in to change notification settings - Fork 15.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
nixos/nsd: symlink conf file to /etc/nsd #91514
Conversation
@NinjaTrappeur Yea, this needs a change. The reason for this is that all nsd binaries installed on the system (like |
Aha! I did not think about Ok, sounds good.
I won't be available until tonight (CEST time). If you can do it earlier, be my guest, I'll be happy to review it. If you go ahead, it'll probably a good idea to cherry-pick 9501883 at the same time. I'm using NSD on my router, needless to say the current un-cached situation is a bit annoying to me, I'd like to fix that pretty quick! |
Just updated the PR. We're now creating a symlink to |
Great, thanks a lot for your changes! One last request since you are already on it. The default config file path is wrong in the derivation. It’s missing the leading https://github.com/NixOS/nixpkgs/pull/91514/files#diff-a172753a317033e33503641d094d3636R14 |
We remove the configFile build flag override in the NixOS module. Instead of embedding the conf file link to the binaries, we symlink it to /etc/nsd/nsd.nix, the hardcoded config file location for the various CLI nsd utilities. This config file build option override is triggerring a nsd rebuild for each configuration change. This prevent us to use the nixos cache in many cases. Co-authored-by: Erjo <erjo@cocoba.work>
Aha, indeed. Good catch.
Updated.
|
Thanks for all the changes 👍 |
Motivation for this change
@hrdinka, I see you wrote that particular part. I know it was a long time ago, but I feel like I might be missing some context and do something stupid here. Would you happen to remember what led you to add this override?
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)