dotfiles/nixos/hardware/omen.nix
2021-01-18 20:24:07 +01:00

41 lines
894 B
Nix

inputs:
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, rlib }:
{ config, pkgs, ... }:
{
boot = {
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sr_mod"
"rtsx_pci_sdmmc"
];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
hardware.enableRedistributableFirmware = true;
powerManagement.cpuFreqGovernor = pkgs.lib.mkDefault "powersave";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/bfdcd9bc-c5bb-424a-a110-20fab4b97f6d";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
"/btrfs" = {
device = "/dev/disk/by-uuid/bfdcd9bc-c5bb-424a-a110-20fab4b97f6d";
fsType = "btrfs";
options = [ "subvol=/" ];
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/9dca362e-43be-4f27-81bc-6bb7a244a7ae"; }
];
}