nixos/systems/proxmox-vm/default.nix

32 lines
608 B
Nix
Raw Normal View History

2022-01-14 18:02:07 +01:00
{ hostname, ip, ... }:
2022-01-01 15:21:51 +01:00
{
2022-01-15 15:32:27 +01:00
imports = [
2022-01-16 17:11:29 +01:00
(import ../../modules/mk-network { inherit hostname ip; })
2022-01-15 15:32:27 +01:00
];
2022-01-01 15:21:51 +01:00
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "dm-snapshot" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
2022-01-01 15:21:51 +01:00
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
}