mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: defines machine-specific variables
This commit is contained in:
parent
cdf68775f8
commit
dee7e2e5e9
1 changed files with 17 additions and 0 deletions
17
hosts/dandelion/variables.nix
Normal file
17
hosts/dandelion/variables.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
inherit (config.liv) variables;
|
||||||
|
in {
|
||||||
|
options.liv.variables.dandelion = {
|
||||||
|
thisMachine = mkOption {
|
||||||
|
default = "dandelion.srv.${variables.primaryDomain}";
|
||||||
|
type = types.str;
|
||||||
|
readOnly = true;
|
||||||
|
description = "Domain of this specific machine";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue