19 lines
		
	
	
	
		
			337 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			337 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   config,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib) mkIf;
 | |
|   inherit (config.ooknet.host) admin;
 | |
|   cfg = config.ooknet.programs._1password;
 | |
| in {
 | |
|   config = mkIf cfg.enable {
 | |
|     programs = {
 | |
|       _1password.enable = true;
 | |
|       _1password-gui = {
 | |
|         enable = true;
 | |
|         polkitPolicyOwners = ["${admin.name}"];
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 |