refactor(treewide): cleanup
This commit is contained in:
		
							parent
							
								
									2fe6c44941
								
							
						
					
					
						commit
						2d93503bbc
					
				
					 30 changed files with 76 additions and 273 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| { config, lib, inputs, ... }:  | ||||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   inherit (lib) mkIf mapAttrs mkDefault; | ||||
|   host = config.systemModules.host; | ||||
| in | ||||
| 
 | ||||
|  | @ -10,13 +10,13 @@ in | |||
|     nix = { | ||||
|       settings = { | ||||
|         trusted-users = [ "root" "@wheel" ]; | ||||
|         auto-optimise-store = lib.mkDefault true; | ||||
|         auto-optimise-store = mkDefault true; | ||||
|         experimental-features = [ "nix-command" "flakes" "repl-flake" ]; | ||||
|         warn-dirty = false; | ||||
|         system-features = [ "kvm" "big-parallel" "nixos-test" ]; | ||||
|         flake-registry = ""; | ||||
|       }; | ||||
|       registry = lib.mapAttrs (_: value: { flake = value; }) inputs; | ||||
|       registry = mapAttrs (_: value: { flake = value; }) inputs; | ||||
|       nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ]; | ||||
|     };  | ||||
|   }; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ let | |||
| in | ||||
| 
 | ||||
| { | ||||
|   config = mkIf host.type != "phone" { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     nixpkgs = { | ||||
|       overlays = builtins.attrValues outputs.overlays; | ||||
|       config = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue