feat: NixOS template for new users #33

Open
8bitbuddhist wants to merge 14 commits from new-user-templates into main
Showing only changes of commit a83275e048 - Show all commits

View file

@ -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;
8bitbuddhist marked this conversation as resolved Outdated

we can avoid lib.mkMerge here since cfg.allowUnfree is a boolean we can set it directly too nixpkgs.config.allowUnfree

we can avoid `lib.mkMerge` here since `cfg.allowUnfree` is a boolean we can set it directly too `nixpkgs.config.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;
}) };
];
} }