mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
files: support absolute home directory path
This commit is contained in:
parent
3bc3b34d97
commit
d81276607c
1 changed files with 2 additions and 0 deletions
|
@ -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>.
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue