nix-home/nki-personal-do/hardware-configuration.nix

11 lines
401 B
Nix
Raw Normal View History

2021-10-27 19:36:16 +00:00
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
2022-12-01 18:14:40 +00:00
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
2021-10-27 19:36:16 +00:00
boot.initrd.kernelModules = [ "nvme" ];
2022-12-01 18:14:40 +00:00
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
2021-11-01 18:59:12 +00:00
# swap
2022-12-01 18:14:40 +00:00
swapDevices = [{ device = "/var/swapfile"; size = 2 * 1024; }];
2021-10-27 19:36:16 +00:00
}