From f74b692418951589aab38d781d79f567ce4858e4 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 31 Aug 2025 19:15:45 +0200 Subject: [PATCH] fix `pathFromRoot` to work on strings, as its `removePrefix` does not actually work with store versions of sub-folders --- deployment/check/common/sharedOptions.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment/check/common/sharedOptions.nix b/deployment/check/common/sharedOptions.nix index c0efc6cf..95736066 100644 --- a/deployment/check/common/sharedOptions.nix +++ b/deployment/check/common/sharedOptions.nix @@ -32,11 +32,10 @@ in }; pathFromRoot = mkOption { - type = types.path; + type = types.str; description = '' Path from the root of the repository to the working directory. ''; - apply = x: lib.path.removePrefix config.pathToRoot x; }; pathToCwd = mkOption {