add keyring so 1password works properly again
This commit is contained in:
		
							parent
							
								
									80a4ed8f70
								
							
						
					
					
						commit
						3f4392c233
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										21
									
								
								modules/nixos/security/keyring/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/nixos/security/keyring/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
{
 | 
			
		||||
  options,
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
with lib;
 | 
			
		||||
with lib.${namespace};
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.${namespace}.security.keyring;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.${namespace}.security.keyring = with types; {
 | 
			
		||||
    enable = mkBoolOpt true "Whether to enable gnome keyring.";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    services.gnome.gnome-keyring.enable = true; 
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue