about summary refs log blame commit diff
path: root/users/tazjin/nixos/modules/persistence.nix
blob: d3a918025a5042ec865a3d76a853599d4177ee06 (plain) (tree)
1
2
3
4
5
6
                                               
                                  


             
                                                           









                                              
                                  


                
                                                                     


                       

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