diff --git a/features/server-mode.nix b/features/server-mode.nix new file mode 100644 index 0000000..8348d15 --- /dev/null +++ b/features/server-mode.nix @@ -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"; +} diff --git a/flake.nix b/flake.nix index a2e219f..804047a 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ];