ac4a77d82f
Change-Id: If2513b009a82a07b90eb06a5dc4db0859aa6c78d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12584 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
27 lines
626 B
Nix
27 lines
626 B
Nix
# Configuration for persistent (non-home) data.
|
|
{ config, 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/lib/private/yggdrasil"
|
|
"/var/log"
|
|
];
|
|
|
|
files = lib.optional (builtins.isNull config.networking.hostId) [
|
|
"/etc/machine-id"
|
|
];
|
|
};
|
|
|
|
programs.fuse.userAllowOther = true;
|
|
}
|