hosts: move gnupg into a module
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -6,6 +6,7 @@ let
 | 
				
			|||||||
    ./nvim.nix
 | 
					    ./nvim.nix
 | 
				
			||||||
    ./nix.nix
 | 
					    ./nix.nix
 | 
				
			||||||
    ./modules/zsh
 | 
					    ./modules/zsh
 | 
				
			||||||
 | 
					    ./modules/gnupg
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      _module.args = globalArgs;
 | 
					      _module.args = globalArgs;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,12 +22,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  programs = {
 | 
					  programs = {
 | 
				
			||||||
    git.enable = true;
 | 
					    git.enable = true;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    gnupg = {
 | 
					 | 
				
			||||||
      agent = {
 | 
					 | 
				
			||||||
        enableSSHSupport = true;
 | 
					 | 
				
			||||||
        enable = true;
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,14 +24,6 @@
 | 
				
			|||||||
    gcc
 | 
					    gcc
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs = {
 | 
					 | 
				
			||||||
    gnupg = {
 | 
					 | 
				
			||||||
      agent = {
 | 
					 | 
				
			||||||
        enable = true;
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  nix = {
 | 
					  nix = {
 | 
				
			||||||
    extraOptions = ''
 | 
					    extraOptions = ''
 | 
				
			||||||
      experimental-features = nix-command flakes
 | 
					      experimental-features = nix-command flakes
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								hosts/modules/gnupg/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								hosts/modules/gnupg/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					{ ... }:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  programs.gnupg = {
 | 
				
			||||||
 | 
					    agent = {
 | 
				
			||||||
 | 
					      enableSSHSupport = true;
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user