diff --git a/hosts/common/home/fs.nix b/hosts/common/home/fs.nix index 70c9aa6ac..5f11dcf8b 100644 --- a/hosts/common/home/fs.nix +++ b/hosts/common/home/fs.nix @@ -32,9 +32,15 @@ sane.user.fs = let persistEnabled = config.sane.persist.enable; in { - ".persist/private" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.private.origin; }; - ".persist/plaintext" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.plaintext.origin; }; - ".persist/ephemeral" = lib.mkIf persistEnabled { symlink.target = config.sane.persist.stores.ephemeral.origin; }; + ".persist/private" = lib.mkIf persistEnabled { + symlink.target = "${config.sane.persist.stores.private.origin}/home/${config.sane.defaultUser}"; + }; + ".persist/plaintext" = lib.mkIf persistEnabled { + symlink.target = "${config.sane.persist.stores.plaintext.origin}/home/${config.sane.defaultUser}"; + }; + ".persist/ephemeral" = lib.mkIf persistEnabled { + symlink.target = "${config.sane.persist.stores.ephemeral.origin}/home/${config.sane.defaultUser}"; + }; "nixos".symlink.target = "dev/nixos";