3bc9128dfc
Change-Id: Ic6bc463304643a7f983a5f7c182f95a7706ca35b Reviewed-on: https://cl.tvl.fyi/c/depot/+/5868 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
26 lines
527 B
Nix
26 lines
527 B
Nix
# Configuration for persistent (non-home) data.
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(depot.third_party.sources.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;
|
|
}
|