nixconf/systems/x86_64-linux/sushiroll/hardware.nix

59 lines
1.8 KiB
Nix
Raw Normal View History

{
config,
lib,
modulesPath,
pkgs,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"ehci_pci" "ahci" "xhci_pci" "sd_mod" "sdhci_pci"
"aesni_intel" "cryptd" "usbhid"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
hardware.firmware = [ pkgs.wireless-regdb ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ceacca21-1102-482b-997a-ba9f770222a8";
fsType = "btrfs";
options = [ "subvol=rootfs" "compress=zstd" "noatime" ];
};
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/5a5f1919-b584-4675-86fa-18346cf419fa";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C0F7-200B";
fsType = "vfat";
};
fileSystems."/nix/store" =
{ device = "/dev/disk/by-uuid/ceacca21-1102-482b-997a-ba9f770222a8";
fsType = "btrfs";
options = [ "subvol=nixstore" "compress=zstd" "noatime" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/ceacca21-1102-482b-997a-ba9f770222a8";
fsType = "btrfs";
options = [ "subvol=home" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}