nixos-config/hardware/home-pc.nix

64 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2022-01-27 15:03:07 +01:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
2024-05-26 16:45:38 +02:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
2020-09-23 10:36:46 +02:00
{
2024-05-26 16:45:38 +02:00
boot.initrd.availableKernelModules = [
"nvme"
"ahci"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
];
2020-09-23 10:36:46 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2020-09-23 13:19:19 +02:00
fileSystems."/" = {
2022-01-27 15:03:07 +01:00
device = "/dev/disk/by-uuid/5830e9b3-260b-451c-bfee-2028c64c6199";
2020-09-23 13:19:19 +02:00
fsType = "btrfs";
2024-05-26 16:45:38 +02:00
options = [
"subvol=@"
"compress-force=zstd:1"
"noatime"
];
2020-09-23 13:19:19 +02:00
};
2024-05-26 16:45:38 +02:00
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/1dd848b6-cd7f-4959-8500-a03ffdaeae66";
2020-09-23 13:19:19 +02:00
fileSystems."/home" = {
2022-01-27 15:03:07 +01:00
device = "/dev/disk/by-uuid/5830e9b3-260b-451c-bfee-2028c64c6199";
2020-09-23 13:19:19 +02:00
fsType = "btrfs";
2024-05-26 16:45:38 +02:00
options = [
"subvol=@home"
"compress-force=zstd:1"
"noatime"
];
2020-09-23 13:19:19 +02:00
};
fileSystems."/.snapshots" = {
2022-01-27 15:03:07 +01:00
device = "/dev/disk/by-uuid/5830e9b3-260b-451c-bfee-2028c64c6199";
2020-09-23 13:19:19 +02:00
fsType = "btrfs";
2024-05-26 16:45:38 +02:00
options = [
"subvol=@snapshots"
"compress-force=zstd:1"
"noatime"
];
2020-09-23 13:19:19 +02:00
};
fileSystems."/boot" = {
2022-01-27 15:03:07 +01:00
device = "/dev/disk/by-uuid/17B2-42C2";
2020-09-23 13:19:19 +02:00
fsType = "vfat";
};
2020-09-23 10:36:46 +02:00
2024-05-26 16:45:38 +02:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2020-09-23 10:36:46 +02:00
}