davi: extract configuration
This commit is contained in:
		
							parent
							
								
									5abc32d0f4
								
							
						
					
					
						commit
						b18d3b52c2
					
				
					 3 changed files with 27 additions and 16 deletions
				
			
		
							
								
								
									
										26
									
								
								hosts/phantom/davi.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								hosts/phantom/davi.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  users.users.davikiwi = {
 | 
			
		||||
    isNormalUser = true;
 | 
			
		||||
    description = "Davi";
 | 
			
		||||
    hashedPassword = "$y$j9T$0e/rczjOVCy7PuwC3pG0V/$gTHZhfO4wQSlFvbDyfghbCnGI2uDI0a52zSrQ/yOA5A";
 | 
			
		||||
    openssh.authorizedKeys.keys = [
 | 
			
		||||
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGgZDBnj+gVMHqoNvjpx2T/HqnxUDbLPshu+t7301gXd Davi@DESKTOP-EVHFGJ9"
 | 
			
		||||
    ];
 | 
			
		||||
    extraGroups = [ "docker" ];
 | 
			
		||||
    packages = with pkgs; [
 | 
			
		||||
      (pkgs.python3.withPackages (python-pkgs: [
 | 
			
		||||
        python-pkgs.pip
 | 
			
		||||
        python-pkgs.wheel
 | 
			
		||||
      ]))
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.nginx.virtualHosts."davikiwi.lelgenio.com" = {
 | 
			
		||||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
    locations."/" = {
 | 
			
		||||
      proxyPass = "http://127.0.0.1:24618";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +20,7 @@
 | 
			
		|||
    ./forgejo.nix
 | 
			
		||||
    ./warthunder-leak-counter.nix
 | 
			
		||||
    ./invidious.nix
 | 
			
		||||
    ./davi.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  networking.hostName = "phantom";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,22 +41,6 @@
 | 
			
		|||
    initialHashedPassword = "$y$j9T$E3aBBSSq0Gma8hZD9L7ov0$iCGDW4fqrXWfHO0qodBYYgMFA9CpIraoklHcPbJJrM3";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  users.users.davikiwi = {
 | 
			
		||||
    isNormalUser = true;
 | 
			
		||||
    description = "Davi";
 | 
			
		||||
    hashedPassword = "$y$j9T$0e/rczjOVCy7PuwC3pG0V/$gTHZhfO4wQSlFvbDyfghbCnGI2uDI0a52zSrQ/yOA5A";
 | 
			
		||||
    openssh.authorizedKeys.keys = [
 | 
			
		||||
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGgZDBnj+gVMHqoNvjpx2T/HqnxUDbLPshu+t7301gXd Davi@DESKTOP-EVHFGJ9"
 | 
			
		||||
    ];
 | 
			
		||||
    extraGroups = [ "docker" ];
 | 
			
		||||
    packages = with pkgs; [
 | 
			
		||||
      (pkgs.python3.withPackages (python-pkgs: [
 | 
			
		||||
        python-pkgs.pip
 | 
			
		||||
        python-pkgs.wheel
 | 
			
		||||
      ]))
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  security.sudo.wheelNeedsPassword = false;
 | 
			
		||||
 | 
			
		||||
  programs.fish.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue