summaryrefslogtreecommitdiff
path: root/machines/lenovo/impermanence.nix
blob: ced435eb13646660c842e4a337d6cad3a2ed2f79 (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
40
41
42
43
44
45
{
  environment.persistence."/nix/persist" = {
    enable = true;
    hideMounts = true;
    directories = [
      "/var/log"
      "/var/lib/bluetooth"
      "/var/lib/nixos"
      "/var/lib/systemd/coredump"
      "/etc/NetworkManager/system-connections"
      "/etc/ssh"
      "/etc/ly/custom-sessions"
    ];
    files = [
      "/etc/machine-id"
      "/etc/ly/save.txt"
    ];
    users."andromeda" = {
      directories = [
        ".backups"
        ".local/share/Anki2"
        ".local/share/chat.fluffy.fluffychat"
        ".local/share/zoxide"
        ".ssh"
        "conf"
        "Downloads"
        "pp"
      ];
      files = [
        ".bash_history"
        ".brush_history"
      ];
    };
    users."mtgmonkey" = {
      directories = [
        ".local/share/zoxide"
        ".ssh"
      ];
      files = [
        ".bash_history"
        ".brush_history"
      ];
    };
  };
}