restricted more of leylas configs behind full user
This commit is contained in:
		
							parent
							
								
									a459ce6eb3
								
							
						
					
					
						commit
						b0de438060
					
				
					 6 changed files with 23 additions and 23 deletions
				
			
		|  | @ -8,7 +8,7 @@ in | |||
|   ]; | ||||
| 
 | ||||
|   options.users.leyla = { | ||||
|     isNormalUser = lib.mkEnableOption "create usable leyla user"; | ||||
|     isFullUser = lib.mkEnableOption "create usable leyla user"; | ||||
|     isThinUser = lib.mkEnableOption "create usable user but witohut user applications"; | ||||
|     hasPiperMouse = lib.mkEnableOption "install programs for managing piper supported mouses"; | ||||
|     hasOpenRGBHardware = lib.mkEnableOption "install programs for managing openRGB supported hardware"; | ||||
|  | @ -17,7 +17,7 @@ in | |||
|   }; | ||||
| 
 | ||||
|   config = { | ||||
|     sops.secrets = lib.mkIf cfg.isNormalUser { | ||||
|     sops.secrets = lib.mkIf cfg.isFullUser { | ||||
|       "passwords/leyla" = { | ||||
|         neededForUsers = true; | ||||
|         # sopsFile = ../secrets.yaml; | ||||
|  | @ -34,7 +34,7 @@ in | |||
|       } | ||||
| 
 | ||||
|       ( | ||||
|         if (cfg.isNormalUser || cfg.isThinUser) then { | ||||
|         if (cfg.isFullUser || cfg.isThinUser) then { | ||||
|           isNormalUser = true; | ||||
|           extraGroups = lib.mkMerge [ | ||||
|             ["networkmanager" "wheel" "docker"] | ||||
|  | @ -50,6 +50,6 @@ in | |||
|       ) | ||||
|     ]; | ||||
| 
 | ||||
|     home-manager.users.leyla = lib.mkIf (cfg.isNormalUser || cfg.isThinUser) (import ./home.nix); | ||||
|     home-manager.users.leyla = lib.mkIf (cfg.isFullUser || cfg.isThinUser) (import ./home.nix); | ||||
|   }; | ||||
| } | ||||
|  | @ -8,21 +8,21 @@ in | |||
|     ../../overlays/vscodium.nix | ||||
|   ]; | ||||
| 
 | ||||
|   programs.bash.shellAliases = { | ||||
|   programs.bash.shellAliases = lib.mkIf cfg.isFullUser ({ | ||||
|     code = "codium"; | ||||
|   }; | ||||
|   }); | ||||
| 
 | ||||
|   programs.steam = { | ||||
|   programs.steam = lib.mkIf cfg.isFullUser ({ | ||||
|     enable = true; | ||||
|     remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play | ||||
|     dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server | ||||
|   }; | ||||
|   }); | ||||
| 
 | ||||
|   programs.noisetorch.enable = true; | ||||
|   programs.noisetorch.enable = cfg.isFullUser; | ||||
| 
 | ||||
|   programs.adb.enable = true; | ||||
|   programs.adb.enable = cfg.isFullUser; | ||||
| 
 | ||||
|   users.users.leyla.packages = lib.mkIf (cfg.isNormalUser || cfg.isThinUser) ( | ||||
|   users.users.leyla.packages = lib.mkIf (cfg.isFullUser || cfg.isThinUser) ( | ||||
|     lib.mkMerge [ | ||||
|       ( | ||||
|         with pkgs; [ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue