xin/hosts/europa/hardware-configuration.nix

73 lines
1.7 KiB
Nix
Raw Normal View History

2022-08-25 12:21:35 -06: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.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "rpool/nixos";
fsType = "zfs";
};
fileSystems."/nix" = {
device = "rpool/nixos/nix";
fsType = "zfs";
};
fileSystems."/etc" = {
device = "rpool/nixos/etc";
fsType = "zfs";
};
fileSystems."/var" = {
device = "rpool/nixos/var";
fsType = "zfs";
};
fileSystems."/var/lib" = {
device = "rpool/nixos/var/lib";
fsType = "zfs";
};
fileSystems."/var/log" = {
device = "rpool/nixos/var/log";
fsType = "zfs";
};
fileSystems."/var/spool" = {
device = "rpool/nixos/var/spool";
fsType = "zfs";
};
fileSystems."/home" = {
device = "rpool/nixos/home";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/5250-11DE";
fsType = "vfat";
};
swapDevices = [ ];
# needed for hibernate
2022-08-25 12:21:35 -06:00
#swapDevices =
# [{ device = "/dev/disk/by-uuid/6e56876e-bd04-4fbb-9ff7-5202cbf5eaa4"; }];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware = {
cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
acpilight.enable = true;
video.hidpi.enable = true;
bluetooth.enable = true;
};
}