2023-09-19 17:05:08 +00:00
|
|
|
{
|
2023-09-15 14:53:38 +00:00
|
|
|
imports = [
|
2023-09-22 17:06:18 +00:00
|
|
|
../common/optional/btrfs.nix
|
2023-09-15 14:53:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
2023-09-19 17:05:08 +00:00
|
|
|
availableKernelModules = [ "ahci" "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
2023-09-20 13:09:16 +00:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
2023-09-15 14:53:38 +00:00
|
|
|
};
|
|
|
|
loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
consoleMode = "max";
|
|
|
|
};
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
};
|
2023-09-22 17:06:18 +00:00
|
|
|
|
|
|
|
boot.initrd.luks.devices."enc".device = "/dev/disk/by-uuid/470152b6-16cc-4dcf-b1e9-c684c1589e33";
|
2023-09-15 14:53:38 +00:00
|
|
|
|
2023-09-22 17:25:33 +00:00
|
|
|
fileSystems."/swap" =
|
|
|
|
{ device = "/dev/disk/by-uuid/bf75af76-49b0-41fa-a4e5-9a52a6a0a667";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=swap" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
{ device = "/dev/disk/by-uuid/3D04-3716";
|
2023-09-15 14:53:38 +00:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-09-22 17:25:33 +00:00
|
|
|
|
|
|
|
# fileSystems = {
|
|
|
|
# "/boot" = {
|
|
|
|
# device = "/dev/disk/by-label/ESP";
|
|
|
|
# fsType = "vfat";
|
|
|
|
# };
|
|
|
|
# };
|
2023-09-15 14:53:38 +00:00
|
|
|
|
|
|
|
swapDevices = [{
|
2023-09-20 13:09:16 +00:00
|
|
|
device = "/swap/swapfile";
|
|
|
|
size = 8196;
|
2023-09-15 14:53:38 +00:00
|
|
|
}];
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform.system = "x86_64-linux";
|
2023-09-20 13:09:16 +00:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
2023-09-15 14:53:38 +00:00
|
|
|
powerManagement.cpuFreqGovernor = "powersave";
|
|
|
|
}
|