nixos-config/modules/server.nix
2021-08-25 00:27:20 -04:00

13 lines
312 B
Nix

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