From d81276607c338f319e3e3d959e7eef185e39229c Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 6 Oct 2017 00:19:03 +0200 Subject: [PATCH] files: support absolute home directory path --- modules/files.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/files.nix b/modules/files.nix index 19def8b56..bd2c61250 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -6,6 +6,7 @@ with import ./lib/dag.nix { inherit lib; }; let cfg = config.home.file; + homeDirectory = config.home.homeDirectory; in @@ -19,6 +20,7 @@ in options = { target = mkOption { type = types.str; + apply = removePrefix (homeDirectory + "/"); description = '' Path to target file relative to HOME. '';