summary refs log tree commit diff stats
path: root/hosts/by-name/server3/configuration.nix
blob: 470275b326acda9af755d16c40bf5d7b352a1a2f (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
{config, ...}: {
  imports = [
    ./networking.nix # network configuration that just works
    ./hardware.nix
  ];

  vhack = {
    fail2ban.enable = true;
    mastodon = {
      enable = true;
      domain = "mastodon.vhack.eu";
      enableTLD = false;
      tld = "vhack.eu";
    };
    miniflux = {
      enable = true;
      domain = "miniflux.foss-syndicate.org";
      extraDomains = [
        "rss.foss-syndicate.org"
        "rss.vhack.eu"
        "miniflux.vhack.eu"
      ];
    };
    murmur = {
      enable = true;
      host = "mumble.vhack.eu";
      name = "vhack";
      url = "vhack.eu";
    };
    nixconfig.enable = true;
    openssh.enable = true;
    peertube.enable = true;
    persist = {
      enable = true;
      directories = [
        "/var/log"
      ];
    };
    postgresql.enable = true;
    rust-motd.enable = true;
    users.enable = true;
  };

  boot.tmp.cleanOnBoot = true;
  zramSwap.enable = true;
  networking.hostName = "server3";
  networking.domain = "vhack.eu";

  system.stateVersion = "24.11";
}