tvl-depot/users/tazjin/nixos/modules/persistence.nix
Vincent Ambo 5518f620bb refactor(tazjin/nixos): Split up desktop/laptop configurations
Change-Id: I0f5d631491be0c811ad171510568aac097d2fddd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5553
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
2022-05-10 13:41:33 +00:00

26 lines
517 B
Nix

# Configuration for persistent (non-home) data.
{ depot, pkgs, lib, ... }:
{
imports = [
"${depot.third_party.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;
}