Compare commits
3 commits
69bccfd2e6
...
5da8673244
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5da8673244 | ||
|
|
b72e9c6415 | ||
|
|
50a0cd0d1e |
7 changed files with 7 additions and 14 deletions
|
|
@ -19,7 +19,7 @@ in
|
|||
enable = false;
|
||||
};
|
||||
networking = {
|
||||
hostName = "base";
|
||||
hostName = "base-tofu";
|
||||
};
|
||||
environment.systemPackages = [
|
||||
];
|
||||
|
|
@ -16,10 +16,9 @@ in
|
|||
];
|
||||
deploy = {
|
||||
enable = false;
|
||||
address = "unknown.local";
|
||||
};
|
||||
networking = {
|
||||
hostName = "caddy";
|
||||
hostName = "caddy-tofu";
|
||||
};
|
||||
environment.systemPackages = [
|
||||
];
|
||||
|
|
@ -62,9 +62,6 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
deploy = {
|
||||
address = "201:ea26:66c7:657b:3599:63a6:c66c:d388";
|
||||
};
|
||||
networking = {
|
||||
firewall.enable = lib.mkForce false;
|
||||
hostName = "forgejo-runner-tofu";
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@ in
|
|||
self.nixosModules.default
|
||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||
];
|
||||
deploy = {
|
||||
address = "200:7e25:554c:6df3:2c5:2de:6f9f:a96d";
|
||||
};
|
||||
networking = {
|
||||
hostName = "link-warden-tofu";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ in
|
|||
enable = false;
|
||||
};
|
||||
networking = {
|
||||
hostName = "medchart";
|
||||
hostName = "medchart-tofu";
|
||||
};
|
||||
environment.systemPackages = [
|
||||
];
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@ in
|
|||
self.nixosModules.default
|
||||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||||
];
|
||||
deploy = {
|
||||
address = "200:b938:d405:92df:a6e:1ffd:5213:26b";
|
||||
};
|
||||
services = {
|
||||
uptime-kuma = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
hosts = builtins.fromJSON (builtins.readFile ../../../container_ips.json);
|
||||
in
|
||||
{
|
||||
options.deploy = {
|
||||
enable = lib.mkEnableOption "enable deployrs module" // {
|
||||
|
|
@ -6,7 +9,7 @@
|
|||
};
|
||||
address = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.networking.hostName;
|
||||
default = hosts.${config.networking.hostName};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue