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

17 lines
549 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
2023-07-25 10:22:50 +00:00
swapDevices = [{ device = "/var/swapfile"; size = 4 * 1024; }];
2023-05-15 11:56:39 +00:00
# volumes
2023-05-18 23:02:22 +00:00
fileSystems.data = {
2023-05-15 11:56:39 +00:00
device = "/dev/disk/by-id/scsi-0HC_Volume_31812942";
fsType = "ext4";
2023-05-18 23:02:22 +00:00
mountPoint = "/mnt/data";
2023-05-15 11:56:39 +00:00
};
2021-10-27 19:36:16 +00:00
}