Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow unfree in unstable pkgs

+18 -14
+1 -1
default-home.nix
··· 118 118 ]; 119 119 120 120 nix = { 121 - package = pkgs.nix; 121 + #package = config.nix.package ? pkgs.nix; 122 122 settings = { 123 123 experimental-features = [ 124 124 "nix-command"
+16 -13
flake.nix
··· 51 51 { 52 52 system ? "x86_64-linux", 53 53 modules ? [ ], 54 - unstable ? false, 54 + useUnstable ? false, 55 55 extraGroups ? [ ], 56 56 overlays ? [ ], 57 57 enableNFTables ? true, 58 58 }: 59 + let 60 + unstable = import nixpkgs-unstable { 61 + inherit system overlays; 62 + config.allowUnfree = true; 63 + }; 64 + in 59 65 inputs.nixpkgs.lib.nixosSystem { 60 66 inherit system; 61 67 specialArgs = { 62 68 inherit inputs extraGroups enableNFTables; 63 69 } 64 - // nixpkgs.lib.optionalAttrs unstable { 65 - unstable = import nixpkgs-unstable { 66 - inherit system overlays; 67 - config.allowUnfree = true; 68 - }; 70 + // nixpkgs.lib.optionalAttrs useUnstable { 71 + inherit unstable; 69 72 }; 70 73 modules = [ 71 74 determinite.nixosModules.default ··· 81 84 home-manager.extraSpecialArgs = { 82 85 inherit inputs; 83 86 } 84 - // nixpkgs.lib.optionalAttrs unstable { 85 - unstable = nixpkgs-unstable.legacyPackages.${system}; 87 + // nixpkgs.lib.optionalAttrs useUnstable { 88 + inherit unstable; 86 89 }; 87 90 } 88 91 ] ··· 97 100 "qemu-libvirtd" 98 101 "docker" 99 102 ]; 100 - unstable = true; 103 + useUnstable = true; 101 104 modules = [ 102 105 ./host-specific/odin/configuration.nix 103 106 ]; 104 107 }; 105 108 nixosConfigurations.shizuri = basicSystem { 106 - unstable = true; 109 + useUnstable = true; 107 110 modules = [ 108 111 ./host-specific/shizuri/configuration.nix 109 112 ]; 110 113 }; 111 114 nixosConfigurations.misaki = basicSystem { 112 - unstable = true; 115 + useUnstable = true; 113 116 extraGroups = [ 114 117 "render" 115 118 "nats" ··· 140 143 ]; 141 144 }; 142 145 nixosConfigurations.touma-wsl = basicSystem { 143 - unstable = true; 146 + useUnstable = true; 144 147 modules = [ 145 148 ./host-specific/touma-wsl.nix 146 149 nixos-wsl.nixosModules.default ··· 148 151 enableNFTables = false; 149 152 }; 150 153 nixosConfigurations.edge = basicSystem { 151 - unstable = true; 154 + useUnstable = true; 152 155 modules = [ 153 156 ./host-specific/edge/configuration.nix 154 157 ];
+1
host-specific/misaki/configuration.nix
··· 8 8 ./packages.nix 9 9 ./services.nix 10 10 ]; 11 + nixpkgs.config.allowUnfree = true; 11 12 system.stateVersion = "23.11"; # Did you read the comment? 12 13 }