blob: 567f46b99677c0e1baaf808ed96b123c1ad07677 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
config,
lib,
pkgs,
inputs,
...
}:
let
cfg = config.server;
in
{
options.server = {
enable = lib.mkEnableOption "basic server settings";
};
imports = [
./host-user.nix
./mixins
];
config = lib.mkIf cfg.enable {
_module.args.unstable = inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
boot.tmp.cleanOnBoot = lib.mkDefault true;
documentation.enable = false;
environment.defaultPackages = lib.mkForce [ ];
nix = {
gc = {
dates = "Mon,Wed,Fri *-*-* 00:00:00";
options = "-d --delete-older-than 2d";
};
settings.allowed-users = [ config.networking.hostName ];
};
};
}
|