mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Rename hosts for clarity
This commit is contained in:
parent
d99844df8f
commit
fc386b98dd
24 changed files with 0 additions and 0 deletions
44
hosts/laptop/hardware.nix
Normal file
44
hosts/laptop/hardware.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue