mirror of
https://github.com/SebastianWendel/srx-platform-nix.git
synced 2024-09-19 20:09:02 +02:00
39 lines
873 B
Nix
39 lines
873 B
Nix
{ lib, config, self, inputs, ... }:
|
|
{
|
|
imports = with inputs; [
|
|
self.nixosModules.hardware
|
|
self.nixosModules.hardware-cpu-intel
|
|
# self.nixosModules.hardware-gpu-intel
|
|
self.nixosModules.hardware-bluetooth
|
|
self.nixosModules.hardware-security-secureboot
|
|
srvos.nixosModules.mixins-systemd-boot
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"ahci"
|
|
"nvme"
|
|
"sd_mod"
|
|
"usb_storage"
|
|
"usbhid"
|
|
"xhci_pci"
|
|
"r8169"
|
|
];
|
|
kernelModules = [ ];
|
|
systemd = {
|
|
enable = true;
|
|
inherit (config.systemd) network;
|
|
};
|
|
clevis.enable = true;
|
|
};
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
}
|