chore: Simplify Nix config file in template
Some checks failed
Code Check / Run nixfmt and statix (push) Waiting to run
Code Check / Run nixfmt and statix (pull_request) Has been cancelled

This commit is contained in:
Andre 2024-06-22 13:39:54 -04:00
parent 942a0e41bb
commit 1dccfba71a

View file

@ -19,9 +19,9 @@ in
default = "30d";
};
};
config = lib.mkMerge [
(lib.mkIf cfg.allowUnfree { nixpkgs.config.allowUnfree = true; })
({
config = {
nixpkgs.config.allowUnfree = cfg.allowUnfree;
nix = {
# Enable Flakes
settings.experimental-features = [
@ -46,6 +46,5 @@ in
# Support for standard, dynamically-linked executables
programs.nix-ld.enable = true;
})
];
};
}