tvl-depot/users/tazjin/nixos/modules/persistence.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
591 B
Nix
Raw Normal View History

# 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/log"
];
files = lib.optional (builtins.isNull config.networking.hostId) [
"/etc/machine-id"
];
};
programs.fuse.userAllowOther = true;
}