dotfiles/nix/nixos/hardware/omen.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib, inputs }:
{ config, ... }:
2021-01-18 20:24:07 +01:00
{
boot = {
initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sr_mod"
"rtsx_pci_sdmmc"
];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
2021-02-26 10:25:54 +01:00
supportedFilesystems = [ "zfs" ];
2021-02-28 18:14:01 +01:00
kernelParams = [
"zfs.zfs_arc_max=214748368"
];
2021-02-26 10:25:54 +01:00
kernelPackages = nixpkgs-unstable.linuxPackages_latest;
2021-01-18 20:24:07 +01:00
};
hardware.enableRedistributableFirmware = true;
2021-02-26 10:25:54 +01:00
powerManagement.cpuFreqGovernor = nixpkgs.lib.mkDefault "schedutil";
2021-01-18 20:24:07 +01:00
fileSystems = {
2021-02-26 10:25:54 +01:00
"/" =
{ device = "omen-zpool/root";
fsType = "zfs";
};
"/home" =
{ device = "omen-zpool/root/home";
fsType = "zfs";
};
"/nix" =
{ device = "omen-zpool/root/nix";
fsType = "zfs";
};
2021-03-02 14:44:13 +01:00
"/boot" =
2021-02-26 10:25:54 +01:00
{ device = "/dev/disk/by-partlabel/boot-WL157385";
2021-03-02 14:44:13 +01:00
fsType = "ext4";
};
"/boot/efi" =
{ device = "/dev/disk/by-partlabel/efi-WL157385";
2021-02-26 10:25:54 +01:00
fsType = "vfat";
};
2021-01-18 20:24:07 +01:00
};
swapDevices = [
2021-02-26 10:25:54 +01:00
{ device = "/dev/disk/by-partlabel/swap-WL157385"; }
2021-01-18 20:24:07 +01:00
];
}
2021-02-26 10:25:54 +01:00