nixos-config/modules/home-manager/_private/state/paths.nix

28 lines
774 B
Nix
Raw Normal View History

{ lib, ... }:
{
options.state =
let
pathsSubmodule = { lib, ... }: {
options = {
paths = lib.mkOption {
type = with lib.types; attrsOf (either path (listOf str));
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 {
2024-08-02 03:55:21 +00:00
type = lib.types.submodule pathsSubmodule;
};
}