improve ephemeral os config
This commit is contained in:
		
							parent
							
								
									c192c2d52f
								
							
						
					
					
						commit
						f9cadba3eb
					
				| @ -1,6 +1,10 @@ | |||||||
| { pkgs, ... }: | { pkgs, modulesPath, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|  |   imports = [ | ||||||
|  |     (modulesPath + "/installer/cd-dvd/channel.nix") | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|   boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "e1000" "e1000e" "virtio_pci" "r8169" ]; |   boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "e1000" "e1000e" "virtio_pci" "r8169" ]; | ||||||
|   boot.kernelParams = [ |   boot.kernelParams = [ | ||||||
|     "panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues |     "panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues | ||||||
| @ -9,10 +13,20 @@ | |||||||
|   ]; |   ]; | ||||||
|   boot.kernel.sysctl."vm.overcommit_memory" = "1"; |   boot.kernel.sysctl."vm.overcommit_memory" = "1"; | ||||||
| 
 | 
 | ||||||
|  |   boot.kernelPackages = pkgs.linuxPackages_latest; | ||||||
|  | 
 | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|     cryptsetup |     cryptsetup | ||||||
|     btrfs-progs |     btrfs-progs | ||||||
|  |     git git-lfs | ||||||
|  |     wget | ||||||
|  |     htop | ||||||
|  |     dnsutils | ||||||
|  |     pciutils | ||||||
|  |     usbutils | ||||||
|  |     lm_sensors | ||||||
|   ]; |   ]; | ||||||
|  | 
 | ||||||
|   environment.variables.GC_INITIAL_HEAP_SIZE = "1M"; |   environment.variables.GC_INITIAL_HEAP_SIZE = "1M"; | ||||||
| 
 | 
 | ||||||
|   networking.useDHCP = true; |   networking.useDHCP = true; | ||||||
| @ -24,5 +38,5 @@ | |||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   services.getty.autologinUser = "root"; |   services.getty.autologinUser = "root"; | ||||||
|   users.users.root.openssh.authorizedKeys.keys = (import ../common/ssh.nix).users; |   users.users.root.openssh.authorizedKeys.keys = (import ../../common/ssh.nix).users; | ||||||
| } | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user