mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
files: support absolute home directory path
This commit is contained in:
committed by
Robert Helgesson
parent
3bc3b34d97
commit
d81276607c
@@ -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>.
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user