Rename hosts for clarity

This commit is contained in:
SebastianStork 2025-08-16 22:03:37 +02:00
parent d99844df8f
commit fc386b98dd
24 changed files with 0 additions and 0 deletions

44
hosts/laptop/hardware.nix Normal file
View file

@ -0,0 +1,44 @@
{ inputs, ... }:
{
imports = [
inputs.disko.nixosModules.default
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
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;
fprintd.enable = true;
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
logind = {
powerKey = "suspend-then-hibernate";
lidSwitch = "suspend-then-hibernate";
};
};
systemd.sleep.extraConfig = ''
HibernateDelaySec=2h
HibernateOnACPower=yes
'';
}