nixos-config/modules/profiles/server.nix

15 lines
345 B
Nix
Raw Normal View History

2021-08-25 04:27:20 +00:00
{ config, pkgs, lib, ... }:
with lib;
{
config = mkIf (config.sconfig.profile == "server") {
2021-09-11 23:11:10 +00:00
services.logind.lidSwitch = "ignore";
2021-08-25 04:27:20 +00:00
services.openssh.enable = true;
documentation.nixos.enable = false;
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
2022-01-08 04:34:38 +00:00
randomizedDelaySec = "55min";
2021-08-25 04:27:20 +00:00
};
};
}