about summary refs log tree commit diff
path: root/users/tazjin/nixos/modules/persistence.nix
blob: c81958161fbf90d2a7c02b29f660689628ca3c59 (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
# Configuration for persistent (non-home) data.
{ depot, pkgs, lib, ... }:

{
  imports = [
    "${depot.third_party.impermanence}/nixos.nix"
  ];

  environment.persistence."/persist" = {
    directories = [
      "/etc/NetworkManager/system-connections"
      "/etc/mullvad-vpn"
      "/var/cache/mullvad-vpn"
      "/var/lib/bluetooth"
      "/var/lib/systemd/coredump"
      "/var/lib/tailscale"
      "/var/log"
    ];

    files = [
      "/etc/machine-id"
    ];
  };

  programs.fuse.userAllowOther = true;
}