password hash is now plain file in private repo.
This commit is contained in:
		
							parent
							
								
									04783f1580
								
							
						
					
					
						commit
						7642191e98
					
				
					 10 changed files with 11 additions and 51 deletions
				
			
		| 
						 | 
				
			
			@ -18,7 +18,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
    ../../configs/nixos/interactive-networking.nix
 | 
			
		||||
    ../../configs/nixos/i3
 | 
			
		||||
    ../../configs/nixos/sshd.nix
 | 
			
		||||
    ./secrets.nix
 | 
			
		||||
    ../../configs/nixos/secrets.nix
 | 
			
		||||
    ({
 | 
			
		||||
      config,
 | 
			
		||||
      pkgs,
 | 
			
		||||
| 
						 | 
				
			
			@ -33,10 +33,8 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
			
		|||
      };
 | 
			
		||||
      networking.hostName = "archlaptop-vm"; # Define your hostname.
 | 
			
		||||
 | 
			
		||||
      users.mutableUsers = false;
 | 
			
		||||
      # Define a user account. Don't forget to set a password with ‘passwd’.
 | 
			
		||||
      users.users.${config.host.user} = {
 | 
			
		||||
        hashedPasswordFile = config.sops.secrets.gv-password.path;
 | 
			
		||||
        packages = with pkgs; [firefox];
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,14 +0,0 @@
 | 
			
		|||
{
 | 
			
		||||
  inputs,
 | 
			
		||||
  config,
 | 
			
		||||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../configs/nixos/secrets.nix
 | 
			
		||||
  ];
 | 
			
		||||
  sops.secrets.gv-password = {
 | 
			
		||||
    neededForUsers = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue