2022-05-09 15:40:15 +02:00
|
|
|
# Configuration for persistent (non-home) data.
|
2022-07-14 17:25:00 +02:00
|
|
|
{ config, depot, pkgs, lib, ... }:
|
2022-05-09 15:40:15 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2022-06-14 15:02:59 +02:00
|
|
|
(depot.third_party.sources.impermanence + "/nixos.nix")
|
2022-05-09 15:40:15 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2022-07-14 17:25:00 +02:00
|
|
|
files = lib.optional (builtins.isNull config.networking.hostId) [
|
2022-05-09 15:40:15 +02:00
|
|
|
"/etc/machine-id"
|
|
|
|
];
|
|
|
|
};
|
2022-05-09 17:04:52 +02:00
|
|
|
|
|
|
|
programs.fuse.userAllowOther = true;
|
2022-05-09 15:40:15 +02:00
|
|
|
}
|