forked from jan-leila/nix-config
		
	moved piper to module with enable option
This commit is contained in:
		
							parent
							
								
									afcf415621
								
							
						
					
					
						commit
						b7dd5328d0
					
				
					 4 changed files with 20 additions and 2 deletions
				
			
		|  | @ -20,7 +20,6 @@ in { | |||
|         ungoogled-chromium | ||||
|         krita | ||||
|         gnomeExtensions.dash-to-panel | ||||
|         (lib.mkIf hardware.piperMouse.enable piper) | ||||
|       ] | ||||
|     ); | ||||
| 
 | ||||
|  | @ -61,6 +60,7 @@ in { | |||
|         makemkv.enable = true; | ||||
|         signal-desktop-bin.enable = true; | ||||
|         steam.enable = true; | ||||
|         piper.enable = hardware.piperMouse.enable; | ||||
|       }) | ||||
|     ]; | ||||
|   }; | ||||
|  |  | |||
|  | @ -36,6 +36,7 @@ in { | |||
|           protonvpn-gui.enable = true; | ||||
|           dbeaver-bin.enable = true; | ||||
|           bruno.enable = true; | ||||
|           piper.enable = hardware.piperMouse.enable; | ||||
|         }) | ||||
|         (lib.mkIf (hardware.directAccess.enable && config.user.isDesktopUser) { | ||||
|           anki.enable = true; | ||||
|  | @ -105,7 +106,6 @@ in { | |||
|             noisetorch | ||||
| 
 | ||||
|             # hardware management tools | ||||
|             (lib.mkIf hardware.piperMouse.enable piper) | ||||
|             (lib.mkIf hardware.openRGB.enable openrgb) | ||||
|             (lib.mkIf hardware.viaKeyboard.enable via) | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,6 +6,7 @@ | |||
|     ./makemkv.nix | ||||
|     ./obs.nix | ||||
|     ./anki.nix | ||||
|     ./piper.nix | ||||
|     ./qbittorrent.nix | ||||
|     ./discord.nix | ||||
|     ./obsidian.nix | ||||
|  |  | |||
							
								
								
									
										17
									
								
								modules/home-manager-modules/programs/piper.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								modules/home-manager-modules/programs/piper.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: { | ||||
|   options.programs.piper = { | ||||
|     enable = lib.mkEnableOption "enable piper"; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.programs.piper.enable { | ||||
|     home.packages = with pkgs; [ | ||||
|       piper | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue