Setup mail server and restructure some things
This commit is contained in:
		
					parent
					
						
							
								fa3db3bad6
							
						
					
				
			
			
				commit
				
					
						4a802ab44d
					
				
			
		
					 90 changed files with 512 additions and 66 deletions
				
			
		
							
								
								
									
										35
									
								
								config/nixos-generators/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								config/nixos-generators/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,35 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  boot.loader.grub = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    device = "/dev/vda";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "base";
 | 
			
		||||
    firewall.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  proxmox = {
 | 
			
		||||
    qemuConf = {
 | 
			
		||||
      ostype = "l26";
 | 
			
		||||
      cores = 2;
 | 
			
		||||
      memory = 1024;
 | 
			
		||||
      bios = "seabios";
 | 
			
		||||
      # Option not available in 23.05
 | 
			
		||||
      # diskSize = "8096";
 | 
			
		||||
      virtio0 = "local-zfs:base-disk-0,discard=on";
 | 
			
		||||
      boot = "order=virtio0";
 | 
			
		||||
      net0 = "tag=999,virtio=00:00:00:00:00:00,bridge=vmbr0,firewall=1";
 | 
			
		||||
      agent = true;
 | 
			
		||||
    };
 | 
			
		||||
    qemuExtraConf = {
 | 
			
		||||
      cpu = "cputype=host,flags=+aes";
 | 
			
		||||
      onboot = 1;
 | 
			
		||||
      machine = "q35";
 | 
			
		||||
      template = 1;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  system.stateVersion = "23.05";
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue