{ config, lib, inputs, ... }: { imports = [ inputs.impermanence.nixosModules.home-manager.impermanence ]; options.homeconfig.impermanence.enable = lib.options.mkOption { type = lib.types.bool; default = true; }; config = lib.mkIf config.homeconfig.impermanence.enable { home.persistence."/persist/home/nathan" = { directories = [ "Documents" "Music" "Pictures/Photos" "Projects" "Videos" ".ssh" ".local/share/zoxide" ".config/sops" ]; files = [ ".zsh_history" ]; allowOther = true; }; }; }