1
1
Fork 1
mirror of https://github.com/oddlama/nixos-extra-modules.git synced 2025-10-10 22:00:39 +02:00
oddlama_nixos-extra-modules/modules/node.nix
2024-01-10 16:11:49 +01:00

22 lines
364 B
Nix

{
config,
lib,
...
}: let
inherit
(lib)
mkOption
types
;
in {
options.node = {
name = mkOption {
description = "A unique name for this node (host) in the repository. Defines the default hostname, but this can be overwritten.";
type = types.str;
};
};
config = {
networking.hostName = config.node.name;
};
}