mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Add new host "fern"
This commit is contained in:
parent
c56cefd0c4
commit
02cd2d5f03
8 changed files with 177 additions and 1 deletions
31
hosts/fern/hardware.nix
Normal file
31
hosts/fern/hardware.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue