summaryrefslogtreecommitdiff
path: root/machines/xnet/default.nix
blob: 578db03d193d8d01481d0496db5aefe91b83096e (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
{ lib, ... }:
let
  inherit (lib) mkDefault;
in
{
  imports = [
    ./disk.nix
    ./users.nix
    ./nginx.nix
    ./persist.nix
    ./net
    ./desktop
    ./gitserver
    ./monitoring
  ];

  i18n.defaultLocale = mkDefault "en_US.UTF-8";
  time.timeZone = mkDefault "America/Toronto";

  nix = {
    settings = {
      auto-optimise-store = true;
      experimental-features = [ "nix-command" "flakes" ];
      warn-dirty = false;

      # timeout fast from binary cache
      connect-timeout = 5;
    };
    gc = {
      automatic = true;
      options = mkDefault "--delete-older-than 30d";
    };
  };

  documentation = {
    doc.enable = mkDefault false;
    info.enable = mkDefault false;
  };
}