flake/hosts/pek0/hardware-configuration.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-13 04:01:59 +00:00
{
2024-08-29 18:17:30 +00:00
lib,
2024-02-13 04:01:59 +00:00
inputs,
config,
...
}:
{
2024-02-13 04:01:59 +00:00
imports = [
inputs.nixpkgs.nixosModules.notDetected
inputs.nixos-hardware.nixosModules.apple-macbook-pro
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-hidpi
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
];
2024-07-09 23:12:02 +00:00
services.thermald.enable = true;
2024-02-13 04:01:59 +00:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.kernelModules = [
"kvm-intel"
"wl"
];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
2024-02-13 04:01:59 +00:00
nixpkgs.hostPlatform = "x86_64-linux";
# no disko because dual booting with macOS isnt very flexible
boot.initrd.luks.devices."luks-8c26de19-f0d4-4ac7-a73c-a28dafd30544".device = "/dev/disk/by-uuid/8c26de19-f0d4-4ac7-a73c-a28dafd30544";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/ab9b92a9-b67b-43b4-b0d9-9dd59ccd594b";
fsType = "btrfs";
options = [ "subvol=@" ];
2024-02-13 04:01:59 +00:00
};
"/boot" = {
device = "/dev/disk/by-uuid/E5DE-9C92";
fsType = "vfat";
};
};
2024-08-29 18:17:30 +00:00
swapDevices = lib.singleton { device = "/dev/disk/by-uuid/8a2e90a9-5cc2-40fc-82fe-69ef3cd88e29"; };
2024-02-13 04:01:59 +00:00
}