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