created program option entries for all packages that needs continual state
This commit is contained in:
		
							parent
							
								
									5484f9ba04
								
							
						
					
					
						commit
						9fe35e74ad
					
				
					 21 changed files with 374 additions and 63 deletions
				
			
		
							
								
								
									
										24
									
								
								modules/home-manager-modules/programs/bitwarden.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								modules/home-manager-modules/programs/bitwarden.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: { | ||||
|   options.programs.bitwarden = { | ||||
|     enable = lib.mkEnableOption "enable bitwarden"; | ||||
|   }; | ||||
| 
 | ||||
|   config = lib.mkIf config.programs.bitwarden.enable (lib.mkMerge [ | ||||
|     { | ||||
|       home.packages = with pkgs; [ | ||||
|         bitwarden | ||||
|       ]; | ||||
|     } | ||||
|     ( | ||||
|       lib.mkIf osConfig.host.impermanence.enable { | ||||
|         # TODO: map impermanence for bitwarden | ||||
|       } | ||||
|     ) | ||||
|   ]); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue