mirror of
https://github.com/srid/nixos-config.git
synced 2026-03-19 14:25:16 +08:00
p71: server-mode
This commit is contained in:
parent
f487a19fd0
commit
5583cbc3ff
2 changed files with 17 additions and 1 deletions
15
features/server-mode.nix
Normal file
15
features/server-mode.nix
Normal 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";
|
||||
}
|
||||
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue