parent
c59f0eac51
commit
7efca2ca18
4 changed files with 24 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ with lib;
|
|||
|
||||
let
|
||||
|
||||
cfg = config.home.file;
|
||||
cfg = filterAttrs (n: f: f.enable) config.home.file;
|
||||
|
||||
homeDirectory = config.home.homeDirectory;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,14 @@ in
|
|||
fileType = basePathDesc: basePath: types.attrsOf (types.submodule (
|
||||
{ name, config, ... }: {
|
||||
options = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether this file should be generated. This option allows specific
|
||||
files to be disabled.
|
||||
'';
|
||||
};
|
||||
target = mkOption {
|
||||
type = types.str;
|
||||
apply = p:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue