files: support absolute home directory path

This commit is contained in:
Silvan Mosberger 2017-10-06 00:19:03 +02:00
parent 03a6292223
commit 12fc9c54fa
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7

View file

@ -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 <envar>HOME</envar>.
'';