dotfiles/hosts/lappy/hardware-configuration.nix

39 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-08-05 18:48:10 -07:00
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-09-11 23:15:18 -07:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4";
2023-08-05 18:48:10 -07:00
fsType = "btrfs";
2024-09-11 23:15:18 -07:00
options = [ "compress=zstd" "subvol=@nix-root" ];
2023-08-05 18:48:10 -07:00
};
2024-09-11 23:15:18 -07:00
"/home" = {
device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=@home" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/d626409d-8166-45c2-a168-09dfab31b8a4";
2024-01-20 17:53:24 -08:00
fsType = "btrfs";
2024-09-11 23:15:18 -07:00
options = [ "compress=zstd" "subvol=@nix-store" "noatime"];
2024-01-20 17:53:24 -08:00
};
2024-09-11 23:15:18 -07:00
};
2024-01-20 17:53:24 -08:00
2023-08-05 18:48:10 -07:00
boot.initrd.luks.devices."luksdev".device = "/dev/disk/by-uuid/100a5596-671b-48ba-a1d1-0723559baf87";
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-01-23 20:02:43 -08:00
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
2023-08-05 18:48:10 -07:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}