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