From a1064c4b696c09f89e3468a6e67c3495ad627591 Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Thu, 23 May 2024 14:44:14 -0700 Subject: [PATCH] fix: use strings for calculated paths --- snowfall-lib/fs/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snowfall-lib/fs/default.nix b/snowfall-lib/fs/default.nix index c91bc1d..bb1f082 100644 --- a/snowfall-lib/fs/default.nix +++ b/snowfall-lib/fs/default.nix @@ -35,8 +35,8 @@ in { ## ```nix ## "/user-source/systems" ## ``` - #@ Path -> Path - get-file = path: user-inputs.src + "/${path}"; + #@ String -> String + get-file = path: "${user-inputs.src}/${path}"; ## Get a file path relative to the user's snowfall directory. ## Example Usage: @@ -47,8 +47,8 @@ in { ## ```nix ## "/user-source/snowfall-dir/systems" ## ``` - #@ Path -> Path - get-snowfall-file = path: snowfall-config.root + "/${path}"; + #@ String -> String + get-snowfall-file = path: "${snowfall-config.root}/${path}"; ## Get a file path relative to the this flake. ## Example Usage: @@ -59,8 +59,8 @@ in { ## ```nix ## "/user-source/systems" ## ``` - #@ Path -> Path - internal-get-file = path: core-inputs.src + "/${path}"; + #@ String -> String + internal-get-file = path: "${core-inputs.src}/${path}"; ## Safely read from a directory if it exists. ## Example Usage: