2022-08-21 22:53:04 +00: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.
|
|
|
|
|
{
|
2023-10-05 21:48:06 +00:00
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
|
|
|
|
|
boot.extraModulePackages = [config.boot.kernelPackages.rtl88x2bu];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
2023-10-28 22:38:12 +00:00
|
|
|
|
microsoft-surface.kernelVersion = "6.5.5";
|
2023-10-05 21:48:06 +00:00
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-label/root";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
encrypted = {
|
|
|
|
|
enable = true;
|
|
|
|
|
label = "cryptroot";
|
|
|
|
|
blkDev = "/dev/disk/by-uuid/77829967-0c52-4a52-a65c-cfc093d18776";
|
2022-08-21 22:53:04 +00:00
|
|
|
|
};
|
2023-10-05 21:48:06 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/2697-F70A";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
2023-10-05 21:48:06 +00:00
|
|
|
|
swapDevices = [
|
|
|
|
|
{device = "/dev/disk/by-label/swap";}
|
2022-08-21 22:53:04 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
|
|
|
|
|
systemd.services."iptsd" = {
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
RestartAfter = "5s";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|