dots/hosts/orion/os/boot.nix

41 lines
844 B
Nix
Raw Normal View History

2024-05-03 14:35:00 -05:00
{ modulesPath, pkgs, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-05-03 14:35:00 -05:00
2024-07-24 22:16:17 -05:00
security.tpm2.enable = true;
environment.systemPackages = with pkgs; [ tpm2-tss ];
services.btrfs-rollback = {
enable = true;
diskLabel = "NixOS-Primary";
subvolume = "root";
snapshot = "root-base";
};
2024-05-03 14:35:00 -05:00
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_latest;
2024-05-03 14:35:00 -05:00
kernelModules = [ "kvm-intel" ];
kernelParams = [ "audit=1" ];
extraModulePackages = [ ];
initrd = {
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"vmd"
"nvme"
"usbhid"
"rtsx_pci_sdmmc"
2024-05-03 14:35:00 -05:00
];
systemd = {
enable = true;
2024-07-24 22:16:17 -05:00
enableTpm2 = true;
2024-05-03 14:35:00 -05:00
};
};
};
}