chore: Simplify Nix config file in template
This commit is contained in:
parent
942a0e41bb
commit
1dccfba71a
|
@ -19,9 +19,9 @@ in
|
||||||
default = "30d";
|
default = "30d";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkMerge [
|
config = {
|
||||||
(lib.mkIf cfg.allowUnfree { nixpkgs.config.allowUnfree = true; })
|
nixpkgs.config.allowUnfree = cfg.allowUnfree;
|
||||||
({
|
|
||||||
nix = {
|
nix = {
|
||||||
# Enable Flakes
|
# Enable Flakes
|
||||||
settings.experimental-features = [
|
settings.experimental-features = [
|
||||||
|
@ -46,6 +46,5 @@ in
|
||||||
|
|
||||||
# Support for standard, dynamically-linked executables
|
# Support for standard, dynamically-linked executables
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
})
|
};
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue