2021-07-23 18:47:53 +02: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.
|
|
|
|
|
{
|
2022-04-10 11:54:58 +02:00
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
inherit
|
|
|
|
|
(lib)
|
|
|
|
|
mkDefault
|
|
|
|
|
;
|
|
|
|
|
in {
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
|
boot.kernelModules = ["kvm-intel"];
|
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/6395cef1-c30b-450a-917c-cfb3c0380642";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=@" "compress=zstd" "noatime"];
|
|
|
|
|
};
|
2021-07-23 18:47:53 +02:00
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/c59e7067-e33c-474c-9b8e-96d0e8f59297";
|
|
|
|
|
|
2022-04-10 11:54:58 +02:00
|
|
|
|
fileSystems."/home" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/6395cef1-c30b-450a-917c-cfb3c0380642";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=@home" "compress=zstd" "noatime"];
|
|
|
|
|
neededForBoot = true; # agenix needs my key for some root secrets
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/nix" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/6395cef1-c30b-450a-917c-cfb3c0380642";
|
|
|
|
|
fsType = "btrfs";
|
|
|
|
|
options = ["subvol=@nix" "compress=zstd" "noatime"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/D9DA-F46C";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
swapDevices = [];
|
2021-07-23 18:47:53 +02:00
|
|
|
|
|
2022-01-11 16:08:21 +01:00
|
|
|
|
powerManagement.cpuFreqGovernor = mkDefault "powersave";
|
2021-07-27 00:33:10 +02:00
|
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
2021-07-23 18:47:53 +02:00
|
|
|
|
}
|