mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
Deprecate meta.nix entirely :)
This commit is contained in:
parent
567dabb901
commit
7326e0bb22
14 changed files with 72 additions and 128 deletions
|
|
@ -1,17 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
deploy.targets.infra = {
|
||||
tf = {
|
||||
resources.athame = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.network.nodes.athame.services.openssh.ports;
|
||||
host = config.network.nodes.athame.network.addresses.public.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.athame = {
|
||||
imports = kw.nodeImport "athame";
|
||||
};
|
||||
}
|
||||
|
|
@ -34,6 +34,19 @@ with lib;
|
|||
services.znc
|
||||
];
|
||||
|
||||
# Terraform
|
||||
|
||||
deploy.tf = {
|
||||
resources.athame = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.services.openssh.ports;
|
||||
host = config.network.addresses.public.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# File Systems and Swap
|
||||
|
||||
fileSystems = {
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
config = {
|
||||
deploy.targets.beltane = {
|
||||
tf = {
|
||||
resources.beltane = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.network.nodes.beltane.services.openssh.ports;
|
||||
host = config.network.nodes.beltane.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.beltane = {
|
||||
imports = kw.nodeImport "beltane";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -23,6 +23,19 @@ with lib;
|
|||
services.zfs
|
||||
];
|
||||
|
||||
# Terraform
|
||||
|
||||
deploy.tf = {
|
||||
resources.beltane = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.services.openssh.ports;
|
||||
host = config.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# File Systems and Swap
|
||||
|
||||
boot.supportedFilesystems = singleton "zfs";
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
deploy.targets.dummy.enable = false;
|
||||
network.nodes.dummy = {
|
||||
imports = kw.nodeImport "dummy";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
config = {
|
||||
deploy.targets.ostara = {
|
||||
tf = {
|
||||
resources.ostara = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.network.nodes.ostara.services.openssh.ports;
|
||||
host = config.network.nodes.ostara.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.ostara = {
|
||||
imports = kw.nodeImport "ostara";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -10,6 +10,19 @@ with lib;
|
|||
services.kattv
|
||||
];
|
||||
|
||||
# Terraform
|
||||
|
||||
deploy.tf = {
|
||||
resources.ostara = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.services.openssh.ports;
|
||||
host = config.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# File Systems and Swap
|
||||
|
||||
fileSystems = {
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
{ config, lib, kw, ... }: {
|
||||
network.nodes.rinnosuke = {
|
||||
imports = kw.nodeImport "rinnosuke";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
config = {
|
||||
deploy.targets.samhain = {
|
||||
tf = {
|
||||
resources.samhain = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.network.nodes.samhain.services.openssh.ports;
|
||||
host = config.network.nodes.samhain.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.samhain = {
|
||||
imports = kw.nodeImport "samhain";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -24,6 +24,19 @@ in
|
|||
services.zfs
|
||||
];
|
||||
|
||||
# Terraform
|
||||
|
||||
deploy.tf = {
|
||||
resources.samhain = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.services.openssh.ports;
|
||||
host = config.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# File Systems and Swap
|
||||
|
||||
boot.supportedFilesystems = [ "zfs" "xfs" ];
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
{ lib, config, ... }: with lib; {
|
||||
deploy.targets.mabon = {
|
||||
nodeNames = lib.singleton "mabon";
|
||||
tf = {
|
||||
resources.mabon = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = 62954;
|
||||
host = "192.168.1.119";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.mabon = {
|
||||
imports = lib.hostImport "mabon";
|
||||
networking = {
|
||||
hostName = "mabon";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, kw, ... }: with lib; {
|
||||
config = {
|
||||
deploy.targets.yule = {
|
||||
tf = {
|
||||
resources.yule = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.network.nodes.yule.services.openssh.ports;
|
||||
host = config.network.nodes.yule.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
network.nodes.yule = {
|
||||
imports = kw.nodeImport "yule";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -17,6 +17,19 @@ with lib;
|
|||
services.zfs
|
||||
];
|
||||
|
||||
# Terraform
|
||||
|
||||
deploy.tf = {
|
||||
resources.yule = {
|
||||
provider = "null";
|
||||
type = "resource";
|
||||
connection = {
|
||||
port = head config.services.openssh.ports;
|
||||
host = config.network.addresses.private.ipv4.address;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# File Systems and Swap
|
||||
|
||||
boot.supportedFilesystems = singleton "zfs";
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ let
|
|||
_module.args = {
|
||||
pkgs = lib.mkDefault pkgs;
|
||||
};
|
||||
|
||||
deploy.targets.dummy.enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -57,7 +59,11 @@ let
|
|||
eval = lib.evalModules {
|
||||
modules = lib.singleton metaConfig
|
||||
++ lib.attrValues (removeAttrs xarg.targets [ "common" ])
|
||||
++ lib.attrValues xarg.hosts
|
||||
++ (map (host: {
|
||||
network.nodes.${host} = {
|
||||
imports = config.lib.kw.nodeImport host;
|
||||
};
|
||||
}) (lib.attrNames xarg.hosts))
|
||||
++ lib.singleton ./config/modules/meta/default.nix;
|
||||
|
||||
specialArgs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue