{ inputs, config, lib, pkgs, ... }: { imports = [ inputs.impermanence.nixosModules.impermanence ]; services.syncthing = { dataDir = "/nix/persist/home/leah/syncthing"; configDir = "/nix/persist/home/leah/.config/syncthing"; }; age.identityPaths = [ "/nix/persist/etc/ssh/ssh_host_ed25519_key" ]; environment.persistence."/nix/persist" = { directories = [ "/var/log" "/var/lib" ]; files = [ "/etc/machine-id" "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_ed25519_key.pub" "/etc/ssh/ssh_host_rsa_key" "/etc/ssh/ssh_host_rsa_key.pub" ]; }; programs.fuse.userAllowOther = true; home-manager.users.leah = { imports = [ inputs.impermanence.nixosModules.home-manager.impermanence ]; home.persistence."/nix/persist/home/leah" = { allowOther = true; directories = [ "syncthing" ]; files = [ ".bash_history" ".local/share/mcfly/history.db" ]; }; }; }