Add Factorio (vultr) server
This commit is contained in:
parent
6e16dd7162
commit
b74fc406d5
6 changed files with 104 additions and 0 deletions
19
factorio/hardware-configuration.nix
Normal file
19
factorio/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
device = "nodev";
|
||||
};
|
||||
fileSystems."/boot" = { device = "/dev/disk/by-uuid/FDD2-F69B"; fsType = "vfat"; };
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
||||
boot.initrd.kernelModules = [ "nvme" ];
|
||||
fileSystems."/" = { device = "/dev/vda2"; fsType = "ext4"; };
|
||||
swapDevices = [{
|
||||
device = "/swapfile";
|
||||
size = 4 * 1024; # 4GB
|
||||
}];
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue