hackens-org-configurations/machines/hackens-milieu/hardware-configuration.nix

51 lines
1 KiB
Nix
Raw Normal View History

2021-11-02 19:30:28 +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.
2024-09-24 12:33:51 +02:00
{
config,
lib,
pkgs,
...
}:
2021-11-02 19:30:28 +01:00
{
2024-09-24 12:33:51 +02:00
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
2021-11-02 19:30:28 +01:00
2024-09-24 12:33:51 +02:00
boot.initrd.availableKernelModules = [
"ehci_pci"
"ahci"
"usbhid"
"sd_mod"
"sr_mod"
];
2021-11-02 19:30:28 +01:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-01-15 18:34:00 +01:00
# boot.kernelParams = [ "nomodeset" ];
2024-09-24 12:33:51 +02:00
fileSystems."/" = {
device = "/dev/disk/by-label/nixos-root";
fsType = "btrfs";
options = [
"ssd"
"noatime"
"ssd_spread"
"discard"
"space_cache"
];
};
2021-11-02 19:30:28 +01:00
2024-09-24 12:33:51 +02:00
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
2021-11-02 19:30:28 +01:00
2024-09-24 12:33:51 +02:00
swapDevices = [ { device = "/dev/disk/by-label/SWAP"; } ];
2021-11-02 19:30:28 +01:00
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}