p71: server-mode

This commit is contained in:
Sridhar Ratnakumar 2021-04-15 16:16:26 -04:00
parent f487a19fd0
commit 5583cbc3ff
2 changed files with 17 additions and 1 deletions

15
features/server-mode.nix Normal file
View file

@ -0,0 +1,15 @@
{ 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 with a bluetooth keyboard
services.logind.lidSwitch = "ignore";
}

View file

@ -53,7 +53,8 @@
./hosts/p71.nix
[
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
./features/desktopish
#./features/desktopish
./features/server-mode.nix
./features/virtualization.nix
./features/postgrest.nix
];