mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
26 lines
646 B
Nix
26 lines
646 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
options.state = lib.mkOption {
|
|
type = lib.types.submodule {
|
|
freeFormType = with lib.types; attrsOf anything;
|
|
default = { };
|
|
};
|
|
description = ''
|
|
A set of values referring to the system state for use in other parts of
|
|
the NixOS system. Useful for consistent values and referring to a single
|
|
source of truth for different parts (e.g., services, program) of the
|
|
system.
|
|
'';
|
|
example = {
|
|
services = {
|
|
postgresql.directory = "/var/lib/postgresql";
|
|
backup.ignoreDirectories = [
|
|
"node_modules"
|
|
".direnv"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|