We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b849d commit 2ed428dCopy full SHA for 2ed428d
home/home-manager/persistence.nix
@@ -3,7 +3,7 @@
3
let
4
inherit (config.home) homeDirectory;
5
persistentStoragePath = "${config._module.args.persistent}${homeDirectory}";
6
- strip = lib.stripPrefix homeDirectory;
+ strip = lib.removePrefixPath homeDirectory;
7
configHome = strip config.xdg.configHome;
8
in
9
{
lib/default.nix
@@ -10,7 +10,7 @@ in
10
(builtins.attrNames (builtins.readDir ../${path}));
11
};
12
# remove prefix from a path, if it exists
13
- stripPrefix = prefix: path:
+ removePrefixPath = prefix: path:
14
15
start = lib.splitString "/" prefix;
16
tokens = lib.splitString "/" path;
0 commit comments