diff options
Diffstat (limited to 'users/tazjin/nixos/modules/persistence.nix')
-rw-r--r-- | users/tazjin/nixos/modules/persistence.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/users/tazjin/nixos/modules/persistence.nix b/users/tazjin/nixos/modules/persistence.nix new file mode 100644 index 000000000000..c07ec9227ca2 --- /dev/null +++ b/users/tazjin/nixos/modules/persistence.nix @@ -0,0 +1,24 @@ +# 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" + ]; + }; +} |