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

20 lines
671 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-09-06 07:25:23 +00:00
swapDevices = [{ device = "/var/swapfile"; size = 4 * 1024; priority = 1024; }];
zramSwap.enable = true;
2023-05-15 11:56:39 +00:00
# volumes
2024-10-21 03:04:00 +00:00
services.btrfs.autoScrub.enable = true;
2024-10-21 03:14:26 +00:00
fileSystems.data = {
2024-10-21 03:04:00 +00:00
device = "/dev/disk/by-id/scsi-0HC_Volume_101470796";
fsType = "btrfs";
2023-05-18 23:02:22 +00:00
mountPoint = "/mnt/data";
2024-10-21 03:04:00 +00:00
options = [ "compress=zstd" ];
2023-05-15 11:56:39 +00:00
};
2021-10-27 19:36:16 +00:00
}