nixos-config/hardware/felix-nixos.nix

54 lines
1.6 KiB
Nix
Raw 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.
{ config, lib, pkgs, modulesPath, ... }:
2020-09-23 10:36:46 +02:00
{
2020-09-23 13:19:19 +02:00
boot.initrd.availableKernelModules =
2022-01-27 15:03:07 +01:00
[ "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";
options = [ "subvol=@" "compress-force=zstd" "noatime" ];
};
boot.initrd.luks.devices."enc".device =
2022-01-27 15:03:07 +01:00
"/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";
options = [ "subvol=@home" "compress-force=zstd" "noatime" ];
};
2022-01-27 15:03:07 +01:00
fileSystems."/.swap" = {
device = "/dev/disk/by-uuid/5830e9b3-260b-451c-bfee-2028c64c6199";
2020-09-23 13:19:19 +02:00
fsType = "btrfs";
2022-01-27 15:03:07 +01:00
options = [ "subvol=@swap" "nodatacow" ];
2020-09-23 13:19:19 +02:00
neededForBoot = true;
};
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";
options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ];
};
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
swapDevices = [{
device = "/.swap/swapfile";
size = 8192;
}];
2020-09-23 10:36:46 +02:00
2022-01-27 15:03:07 +01:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2020-09-23 10:36:46 +02:00
}