summary refs log tree commit diff stats
path: root/system/impermanence/default.nix
blob: 3c923d8919b07b7b86c81636244498470a400bea (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
{...}: {
  # TODO: Only activate them if their module is also active
  imports = [
    ./mods/acme.nix
    ./mods/etebase-server.nix
    ./mods/fail2ban.nix
    ./mods/mail.nix
    ./mods/mastodon.nix
    ./mods/matrix.nix
    ./mods/minecraft.nix
    ./mods/murmur.nix
    ./mods/nix-sync.nix
    ./mods/openssh.nix
    ./mods/postgresql.nix
    ./mods/taskserver.nix
    ./mods/users.nix
  ];

  environment.persistence."/srv" = {
    hideMounts = true;
    directories = [
      "/etc/nixos"
      "/var/log"
    ];
    files = [
      "/etc/machine-id"
    ];
  };
}