nixos-config/modules/profiles/server.nix
2021-10-03 17:26:50 -04:00

14 lines
354 B
Nix

{ config, pkgs, lib, ... }:
with lib;
{
config = mkIf (config.sconfig.profile == "server") {
services.logind.lidSwitch = "ignore";
services.openssh.enable = true;
services.openssh.startWhenNeeded = true;
documentation.nixos.enable = false;
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
};
}