Deprecate meta.nix entirely :)

This commit is contained in:
kat witch 2021-08-27 03:54:27 +01:00
parent 567dabb901
commit 7326e0bb22
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
14 changed files with 72 additions and 128 deletions

View file

@ -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";
};
}

View file

@ -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 = {

View file

@ -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";
};
};
}

View file

@ -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";

View file

@ -1,6 +0,0 @@
{ config, lib, kw, ... }: with lib; {
deploy.targets.dummy.enable = false;
network.nodes.dummy = {
imports = kw.nodeImport "dummy";
};
}

View file

@ -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";
};
};
}

View file

@ -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 = {

View file

@ -1,6 +0,0 @@
{ config, lib, kw, ... }: {
network.nodes.rinnosuke = {
imports = kw.nodeImport "rinnosuke";
};
}

View file

@ -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";
};
};
}

View file

@ -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" ];

View file

@ -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";
};
};
}

View file

@ -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";
};
};
}

View file

@ -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";

View file

@ -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 = {