nixos-config/modules/server.nix

14 lines
312 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") {
services.openssh.enable = true;
services.openssh.startWhenNeeded = true;
documentation.nixos.enable = false;
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
};
}