mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
26 lines
647 B
Nix
26 lines
647 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
{
|
||
|
options.state =
|
||
|
let
|
||
|
directoriesSubmodule = { lib, ... }: {
|
||
|
options = {
|
||
|
paths = lib.mkOption {
|
||
|
type = with lib.types; attrsOf (listOf path);
|
||
|
description = ''
|
||
|
A set of directories to share its value to various parts of the
|
||
|
system.
|
||
|
'';
|
||
|
default = { };
|
||
|
example = {
|
||
|
ignoreDirectories = [ "/var/log" ];
|
||
|
ignoreFiles = [ "node_modules" ".gitignore" ".bak" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
in lib.mkOption {
|
||
|
type = lib.types.submodule directoriesSubmodule;
|
||
|
};
|
||
|
}
|