feat: make machines reachable by hostname
This commit is contained in:
parent
22667c219d
commit
1fa48a6c70
2 changed files with 8 additions and 5 deletions
12
flake.nix
12
flake.nix
|
|
@ -80,20 +80,22 @@
|
||||||
# Clan wide settings. (Required)
|
# Clan wide settings. (Required)
|
||||||
meta.name = "cool-clan"; # Ensure to choose a unique name.
|
meta.name = "cool-clan"; # Ensure to choose a unique name.
|
||||||
|
|
||||||
machines = { };
|
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs self;
|
inherit inputs self;
|
||||||
};
|
};
|
||||||
|
|
||||||
inventory = {
|
inventory = {
|
||||||
|
machines = {
|
||||||
|
moritz-desktop.tags = ["peer"];
|
||||||
|
moritz-server.tags = [];
|
||||||
|
};
|
||||||
services.zerotier.default = {
|
services.zerotier.default = {
|
||||||
|
roles.peer.tags = [
|
||||||
|
"peer"
|
||||||
|
];
|
||||||
roles.controller.machines = [
|
roles.controller.machines = [
|
||||||
"moritz-server"
|
"moritz-server"
|
||||||
];
|
];
|
||||||
roles.peer.machines = [
|
|
||||||
"moritz-desktop"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
clan-core.clanModules.root-password
|
clan-core.clanModules.root-password
|
||||||
clan-core.clanModules.user-password
|
clan-core.clanModules.user-password
|
||||||
clan-core.clanModules.state-version
|
clan-core.clanModules.state-version
|
||||||
|
clan-core.clanModules.static-hosts
|
||||||
];
|
];
|
||||||
|
|
||||||
# Locale service discovery and mDNS
|
# Locale service discovery and mDNS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue