nixos-config/hosts/poseidon/hardware-configuration.nix

46 lines
1,012 B
Nix
Raw Normal View History

2021-01-27 18:22:02 +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.
{
2022-04-10 11:54:58 +02:00
config,
lib,
pkgs,
modulesPath,
...
}: let
inherit
(lib)
mkDefault
;
in {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2021-01-27 18:22:02 +01:00
2022-04-10 11:54:58 +02:00
boot.initrd.availableKernelModules = ["ahci" "usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
2021-01-27 18:22:02 +01:00
2022-04-10 11:54:58 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/adcf0158-edfb-402f-82e7-61e4902af989";
fsType = "btrfs";
options = [
"subvol=@nixos"
"compress=zstd"
"noatime"
];
};
2021-01-27 18:22:02 +01:00
2022-04-10 11:54:58 +02:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/ff54b622-0e26-4c6e-aa0c-ac2c1e12699a";
fsType = "ext4";
};
2021-01-27 18:22:02 +01:00
2022-04-10 11:54:58 +02:00
swapDevices = [
{device = "/dev/disk/by-uuid/381a9c5e-4d71-45b4-ac62-e7414b3768fc";}
];
2021-01-27 18:22:02 +01:00
2022-01-11 16:08:21 +01:00
powerManagement.cpuFreqGovernor = mkDefault "ondemand";
2021-01-27 18:22:02 +01:00
}