refactor(treewide): statix
This commit is contained in:
		
							parent
							
								
									366fa0ce80
								
							
						
					
					
						commit
						7f2cd7a343
					
				
					 71 changed files with 84 additions and 84 deletions
				
			
		|  | @ -6,7 +6,7 @@ | |||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     services.greetd = { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   imports = [ | ||||
|     ./firewall.nix | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     networking.firewall = { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     services.resolved = { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf mkDefault; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     services.openssh = { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   # nyx module | ||||
|   config = mkIf (host.type != "phone") { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf mapAttrs mapAttrsToList; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   imports = [ | ||||
|     ./nh.nix | ||||
|  |  | |||
|  | @ -5,8 +5,8 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   admin = host.admin; | ||||
|   inherit (config.ooknet) host; | ||||
|   inherit (host) admin; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     environment.variables.FLAKE = mkIf admin.homeManager "/home/${admin.name}/.config/ooknet/"; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     nixpkgs = { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.ooknet.host; | ||||
|   inherit (config.ooknet) host; | ||||
| in { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     nix.settings = { | ||||
|  |  | |||
|  | @ -6,9 +6,9 @@ | |||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
| 
 | ||||
|   host = config.ooknet.host; | ||||
|   admin = host.admin; | ||||
|   tailscale = host.networking.tailscale; | ||||
|   inherit (config.ooknet) host; | ||||
|   inherit (host) admin; | ||||
|   inherit (host.networking) tailscale; | ||||
| in { | ||||
|   age.identityPaths = [ | ||||
|     "/home/${admin.name}/.ssh/id_ed25519" | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
| }: let | ||||
|   inherit (lib) optionals mkForce concatLists; | ||||
|   inherit (builtins) elem; | ||||
|   features = config.ooknet.host.hardware.features; | ||||
|   inherit (config.ooknet.host.hardware) features; | ||||
| in { | ||||
|   security = { | ||||
|     # Protects the kernel from being tampered with at runtime. prevents the ability to hibernate. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue