58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
# 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,
|
||
...
|
||
}:
|
||
|
||
{
|
||
imports = [ "${modulesPath}/installer/scan/not-detected.nix" ];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"r8169"
|
||
"ahci"
|
||
"vfio-pci"
|
||
"xhci_pci"
|
||
"ehci_pci"
|
||
"nvme"
|
||
"usbhid"
|
||
"sd_mod"
|
||
"sr_mod"
|
||
];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
nix.settings.max-jobs = lib.mkDefault 12;
|
||
powerManagement.powertop.enable = true;
|
||
powerManagement.cpuFreqGovernor = "powersave";
|
||
powerManagement.scsiLinkPolicy = "min_power";
|
||
|
||
fileSystems."/persistent" = {
|
||
device = "/dev/disk/by-uuid/ca79f433-163a-4c5c-b176-8e694a674dda";
|
||
fsType = "xfs";
|
||
neededForBoot = true;
|
||
};
|
||
fileSystems."/" = {
|
||
device = "none";
|
||
fsType = "tmpfs";
|
||
options = [
|
||
"size=8G"
|
||
"defaults"
|
||
"mode=755"
|
||
];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/DA11-68A6";
|
||
fsType = "vfat";
|
||
options = [
|
||
"fmask=0022"
|
||
"dmask=0022"
|
||
"noauto"
|
||
"x-systemd.automount"
|
||
];
|
||
};
|
||
|
||
}
|