nixos-config/features/server/unlaptop.nix
Sridhar Ratnakumar 8c472ce800 harden
2021-09-06 12:45:34 -04:00

14 lines
365 B
Nix

{ config, pkgs, ... }:
{
# NOTE: might have to disable tlp to ignore suspend on lid. Ideally
# disable just that. P71 is acting as a server right now, always plugged.
services.tlp = {
enable = true;
settings = {
SCHED_POWERSAVE_ON_AC = 1;
};
};
# This machine is now a long-running home-server
services.logind.lidSwitch = "ignore";
}