summary refs log tree commit diff stats
path: root/system/file_system_layouts/impermanence.nix
blob: da38791802c86e49d6c097048dfdedcca716c781 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{...}: {
  environment.persistence = {
    "/srv" = {
      hideMounts = true;
      directories = [
        "/etc/nixos"
        "/var/log"
        "/var/lib/postgresql"
        "/var/lib/acme"
      ];
      files = [
        "/etc/machine-id"
      ];
    };
  };
}