files: support absolute home directory path
This commit is contained in:
parent
3bc3b34d97
commit
d81276607c
|
@ -6,6 +6,7 @@ with import ./lib/dag.nix { inherit lib; };
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.home.file;
|
cfg = config.home.file;
|
||||||
|
homeDirectory = config.home.homeDirectory;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -19,6 +20,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
target = mkOption {
|
target = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
apply = removePrefix (homeDirectory + "/");
|
||||||
description = ''
|
description = ''
|
||||||
Path to target file relative to <envar>HOME</envar>.
|
Path to target file relative to <envar>HOME</envar>.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue