Skip to content

Commit 2ed428d

Browse files
committed
fix(lib): rename stripPrefix -> removePrefixPath
1 parent 05b849d commit 2ed428d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: home/home-manager/persistence.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
let
44
inherit (config.home) homeDirectory;
55
persistentStoragePath = "${config._module.args.persistent}${homeDirectory}";
6-
strip = lib.stripPrefix homeDirectory;
6+
strip = lib.removePrefixPath homeDirectory;
77
configHome = strip config.xdg.configHome;
88
in
99
{

Diff for: lib/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ in
1010
(builtins.attrNames (builtins.readDir ../${path}));
1111
};
1212
# remove prefix from a path, if it exists
13-
stripPrefix = prefix: path:
13+
removePrefixPath = prefix: path:
1414
let
1515
start = lib.splitString "/" prefix;
1616
tokens = lib.splitString "/" path;

0 commit comments

Comments
 (0)