mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
wip: remove very specific special args and unify library functions
This commit is contained in:
parent
dfc3084fe9
commit
68bb9731d3
28 changed files with 594 additions and 644 deletions
|
@ -1,19 +1,31 @@
|
|||
{}
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
# TODO define special args in a more documented and readOnly accessible way
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mdDoc
|
||||
mkDefault
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
|
||||
cfg = config.node;
|
||||
in {
|
||||
options.node = {
|
||||
name = mkOption {
|
||||
description = mdDoc "A unique name for this node (host) in the repository. Defines the default hostname, but this can be overwritten.";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
secretsDir = mkOption {
|
||||
description = mdDoc "Path to the secrets directory for this node.";
|
||||
type = types.path;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
networking.hostName = mkDefault config.node.name;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue