introduce new host
This commit is contained in:
		
							parent
							
								
									d69c9c2a10
								
							
						
					
					
						commit
						a1eb889f50
					
				
					 5 changed files with 82 additions and 3 deletions
				
			
		
							
								
								
									
										37
									
								
								systems/x86_64-linux/loptland/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								systems/x86_64-linux/loptland/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | |||
| { | ||||
|   lib, | ||||
|   namespace, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| let | ||||
|   inherit (lib.${namespace}) enabled; | ||||
| in | ||||
| { | ||||
|   imports = [ ./hardware.nix ]; | ||||
| 
 | ||||
|   services.openssh = { | ||||
|     enable = true; | ||||
|     settings = { | ||||
|       PasswordAuthentication = false; | ||||
|       KbdInteractiveAuthentication = false; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   ${namespace} = { | ||||
|     submodules = { | ||||
|       basics = enabled; | ||||
|     }; | ||||
| 
 | ||||
|     services = { | ||||
|       factorio-server = enabled; | ||||
|     }; | ||||
| 
 | ||||
|     user.trustedPublicKeys = [ | ||||
|       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHFrDiO5+vMfD5MimkzN32iw3MnSMLZ0mHvOrHVVmLD0" | ||||
|     ]; | ||||
| 
 | ||||
|   }; | ||||
| 
 | ||||
|   system.stateVersion = "24.11"; | ||||
| } | ||||
							
								
								
									
										35
									
								
								systems/x86_64-linux/loptland/hardware.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								systems/x86_64-linux/loptland/hardware.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   modulesPath, | ||||
|   ... | ||||
| }: | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     (modulesPath + "/profiles/qemu-guest.nix") | ||||
|   ]; | ||||
| 
 | ||||
|   boot.initrd.availableKernelModules = [ | ||||
|     "ata_piix" | ||||
|     "uhci_hcd" | ||||
|     "virtio_pci" | ||||
|     "sr_mod" | ||||
|     "virtio_blk" | ||||
|   ]; | ||||
|   boot.initrd.kernelModules = [ ]; | ||||
|   boot.kernelModules = [ ]; | ||||
|   boot.extraModulePackages = [ ]; | ||||
| 
 | ||||
|   fileSystems."/" = { | ||||
|     device = "/dev/disk/by-label/nixos"; | ||||
|     fsType = "ext4"; | ||||
|   }; | ||||
| 
 | ||||
|   swapDevices = [ ]; | ||||
| 
 | ||||
|   networking.useDHCP = lib.mkDefault true; | ||||
| 
 | ||||
|   nixpkgs.hostplatform = lib.mkDefault "x86_64-linux"; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue