about summary refs log tree commit diff stats
path: root/system/impermanence/default.nix
blob: 1457530d55392df8e775aeb115cfe96dc0e33698 (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
{impermanence, ...}: {
  imports = [
    # impermanence.nixosModules.impermanence
    "${impermanence}/nixos.nix"
  ];

  environment.persistence = {
    "/srv" = {
      hideMounts = true;
      directories = [
        "/var/log"
        # TODO this needs to be checked
        #"/var/lib/bluetooth"
        #"/var/lib/nixos"
        #"/var/lib/systemd/coredump"
      ];
      files = [
        "/etc/machine-id"
      ];
    };
    "/srv/nixos-config" = {
      directories = [
        "/etc/nixos"
      ];
    };
  };
}