Add new host "fern"

This commit is contained in:
SebastianStork 2025-03-07 13:03:29 +01:00
parent c56cefd0c4
commit 02cd2d5f03
8 changed files with 177 additions and 1 deletions

31
hosts/fern/hardware.nix Normal file
View file

@ -0,0 +1,31 @@
{ inputs, ... }:
{
imports = [ inputs.disko.nixosModules.default ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware = {
enableRedistributableFirmware = true;
cpu.amd.updateMicrocode = true;
};
boot = {
kernelModules = [ "kvm-amd" ];
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"sd_mod"
];
};
services = {
fwupd.enable = true;
logind.lidSwitch = "ignore";
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
};
}