fix: fixed more datasets

This commit is contained in:
Leyla Becker 2026-03-07 19:00:01 -06:00
parent 2f7bbf3e1c
commit 16089e0371
36 changed files with 44 additions and 40 deletions

View file

@ -4,7 +4,7 @@
...
}: {
config = lib.mkIf (config.impermanence.enable) {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"desktop"
"downloads"

View file

@ -12,6 +12,14 @@ in {
type = lib.types.bool;
default = true;
};
persistencePath = lib.mkOption {
type = lib.types.str;
default =
if osConfig.storage.generateBase
then "/persist/replicate/home"
else "/persist";
description = "The base path for user home persistence. The impermanence module will automatically append the user's home directory path. Automatically adapts based on whether the system uses the new dataset layout or the legacy one.";
};
};
config = lib.mkMerge [
@ -26,11 +34,7 @@ in {
# If impermanence is not enabled for this user but system impermanence is enabled,
# persist the entire home directory as fallback
(lib.mkIf (osConfig.storage.impermanence.enable && !cfg.enable && cfg.fallbackPersistence.enable) {
home.persistence."${
if osConfig.storage.generateBase
then "/persist/replicate/home"
else "/persist/home/${config.home.username}"
}" = {
home.persistence."${cfg.persistencePath}" = {
directories = ["."];
allowOther = true;
};

View file

@ -96,7 +96,7 @@
}
)
(lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
files = lib.lists.flatten (
builtins.map (hostKey: [".ssh/${hostKey.path}" ".ssh/${hostKey.path}.pub"]) config.programs.openssh.hostKeys
);

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/Google/AndroidStudio"
".android"

View file

@ -4,7 +4,7 @@
...
}: {
config = lib.mkIf (config.programs.anki.enable && config.impermanence.enable) {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
".local/share/Anki2"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/Bitwarden"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/bruno/"
];

View file

@ -12,7 +12,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/calibre"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.dataHome}/DaVinciResolve"
"${config.xdg.configHome}/blackmagic"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.dataHome}/DBeaverData/"
];

View file

@ -6,7 +6,7 @@
config = lib.mkIf config.programs.discord.enable (lib.mkMerge [
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/discord/"
];

View file

@ -25,7 +25,7 @@
};
in {
config = lib.mkIf (config.programs.firefox.enable && config.impermanence.enable) {
home.persistence."/persist/replicate/home" = lib.mkMerge (
home.persistence."${config.impermanence.persistencePath}" = lib.mkMerge (
(
lib.attrsets.mapAttrsToList
(profile: _: buildProfilePersistence profile)

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/FreeCAD"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/GIMP"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
# configuration
"${config.xdg.configHome}/JetBrains/"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/inkscape"
];

View file

@ -23,7 +23,7 @@ in {
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/kdenliverc"
"${config.xdg.dataHome}/kdenlive"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/kritarc"
"${config.xdg.dataHome}/krita"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/libreoffice"
];

View file

@ -30,7 +30,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
".MakeMKV"
];

View file

@ -17,7 +17,7 @@ in {
}
(
mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/mapillary-uploader"
"${config.xdg.dataHome}/mapillary-uploader"

View file

@ -6,7 +6,7 @@
config = lib.mkIf config.programs.obs-studio.enable (lib.mkMerge [
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/obs-studio"
];

View file

@ -6,7 +6,7 @@
config = lib.mkIf config.programs.obsidian.enable (lib.mkMerge [
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/obsidian"
];

View file

@ -23,7 +23,7 @@ in {
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/olympus"
"${config.xdg.dataHome}/olympus"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/OpenRGB"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/MusicBrainz"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/ProStudioMasters"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/protonvpn"
"${config.xdg.configHome}/Proton"

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/qBittorrent"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/qFlipper"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/Signal"
];

View file

@ -18,7 +18,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
{
directory = "${config.xdg.dataHome}/Steam";

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.dataHome}/torbrowser"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/chromium"
];

View file

@ -16,7 +16,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/via"
"${config.xdg.dataHome}/via"

View file

@ -17,7 +17,7 @@
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist/replicate/home" = {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
{
directory = ".vmware";