mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
14 lines
312 B
Nix
14 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";
|
||
|
};
|
||
|
};
|
||
|
}
|