mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
28 lines
760 B
Nix
28 lines
760 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
{
|
||
|
options.state =
|
||
|
let
|
||
|
pathsSubmodule = { lib, ... }: {
|
||
|
options = {
|
||
|
paths = lib.mkOption {
|
||
|
type = with lib.types; attrsOf (listOf path);
|
||
|
default = { };
|
||
|
description = ''
|
||
|
Set of paths to hold as a single source of truth for path-related
|
||
|
settings throughout the whole home environment.
|
||
|
'';
|
||
|
example = lib.literalExpression ''
|
||
|
{
|
||
|
ignoreDirectories = [ "''${config.home.homeDirectory}/Nodes" ];
|
||
|
ignorePaths = [ ".gitignore" "node_modules" "result" ];
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
in lib.mkOption {
|
||
|
type = lib.type.submodule pathsSubmodule;
|
||
|
};
|
||
|
}
|