mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
nixos/state: init module
This commit is contained in:
parent
9cd81e5880
commit
9cef07f1a5
@ -1,6 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./extra-arguments.nix
|
||||
./state.nix
|
||||
./suites/archiving.nix
|
||||
./suites/browsers.nix
|
||||
./suites/desktop.nix
|
||||
|
25
modules/nixos/_private/state.nix
Normal file
25
modules/nixos/_private/state.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user