17 lines
476 B
Nix
17 lines
476 B
Nix
{ config, lib, pkgs, ... }: {
|
|
# System boots
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
# Don't turn off when lid is closed
|
|
services.logind.lidSwitchExternalPower = "ignore";
|
|
|
|
# Don't hybernate. You're a server!
|
|
systemd.sleep.extraConfig = ''
|
|
AllowSuspend=no
|
|
AllowHibernation=no
|
|
AllowHybridSleep=no
|
|
AllowSuspendThenHibernate=no
|
|
'';
|
|
}
|