posixlycorrect: add pass
This commit is contained in:
		
							parent
							
								
									f1c9bf2323
								
							
						
					
					
						commit
						bbd37a1c01
					
				
					 4 changed files with 33 additions and 0 deletions
				
			
		|  | @ -31,6 +31,7 @@ in { | |||
|         units | ||||
|         unzip | ||||
|         vim | ||||
|         wl-clipboard | ||||
|         zip | ||||
|       ]; | ||||
|       keyboard = { | ||||
|  |  | |||
|  | @ -20,5 +20,6 @@ | |||
|     ./deepState.nix | ||||
|     ./mapping.nix | ||||
|     ./zed.nix | ||||
|     ./pass.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										30
									
								
								home/modules/pass.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								home/modules/pass.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; let | ||||
|   cfg = config.local.services.pass; | ||||
| in { | ||||
|   options.local.services.pass = { | ||||
|     enable = mkEnableOption "pass settings"; | ||||
|   }; | ||||
|   config = mkIf cfg.enable { | ||||
|     programs.password-store = { | ||||
|       enable = true; | ||||
|       package = pkgs.pass.withExtensions (exts: | ||||
|         with exts; [ | ||||
|           pass-audit | ||||
|           pass-genphrase | ||||
|           pass-otp | ||||
|           pass-tomb | ||||
|           pass-update | ||||
|         ]); | ||||
| 
 | ||||
|       settings = { | ||||
|         PASSWORD_STORE_DIR = "${config.home.homeDirectory}/safe/trust"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -35,6 +35,7 @@ | |||
|         defaultKey = "A8981D346F8F4130CA16A7775517E687FCCE0BB9"; | ||||
|       }; | ||||
|       syncthing.enable = true; | ||||
|       pass.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     apps = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue