diff options
author | Robert Helgesson <robert@rycee.net> | 2017-11-06 18:00:25 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-11-07 17:18:00 +0100 |
commit | 54043df8fbb07e34fac69d103873823c050e4a6b (patch) | |
tree | 31f5c315f2e86fa6f3ab5c19be09c80768d1ae66 /modules/lib | |
parent | fad1e108d835bc4408634da11bff8e0fdb8d0cda (diff) |
files: support recursive linking of directory
Diffstat (limited to 'modules/lib')
-rw-r--r-- | modules/lib/file-type.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/lib/file-type.nix b/modules/lib/file-type.nix index ebdcb774165..d8622d0c8ca 100644 --- a/modules/lib/file-type.nix +++ b/modules/lib/file-type.nix @@ -89,6 +89,23 @@ in for files created through the <varname>text</varname> option. ''; }; + + recursive = mkOption { + type = types.bool; + default = false; + description = '' + If the file source is a directory, then this option + determines whether the directory should be recursively + linked to the target location. This option has no effect + if the source is a file. + </para><para> + If <literal>false</literal> (the default) then the target + will be a symbolic link to the source directory. If + <literal>true</literal> then the target will be a + directory structure matching the source's but whose leafs + are symbolic links to the files of the source directory. + ''; + }; }; config = { |