nixos-config/modules/home-manager/_private/state/default.nix
Gabriel Arazas f6c70a278b
home-manager/state: refactor and add paths and ports sub-option
Similarly structured to the NixOS module to make it consistent, yay.
2024-07-31 21:47:48 +08:00

29 lines
590 B
Nix

{ lib, ... }:
{
imports = [
./ports.nix
./paths.nix
];
options.state = lib.mkOption {
type = lib.types.submodule {
freeformType = with lib.types; attrsOf anything;
default = { };
};
description = ''
A set of values to be held in the home-manager configuration. Pretty much
used for anything that requires consistency or deduplicate the source of
truth for module values.
'';
example = {
sampleValue = 10;
paths.ignoreDirectories = [
".git"
"node_modules"
".direnv"
];
};
};
}