tvl-depot/users/tazjin/nixos/modules/persistence.nix
Vincent Ambo ac4a77d82f feat(tazjin/nixos): persist yggdrasil keys for tverskoy
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
2024-10-06 18:17:07 +00:00

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;
}