project-wide: Created meta.nix per host

This commit is contained in:
kat witch 2021-03-29 04:09:49 +01:00
parent 1868690888
commit 10c91d1e16
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
6 changed files with 136 additions and 90 deletions

18
hosts/athame/meta.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, hosts, ... }: {
config = {
resources.athame = {
provider = "null";
type = "resource";
connection = {
port = 62954;
host = "athame.kittywit.ch";
};
};
deploy.systems.athame = with config.resources; {
nixosConfig = hosts.athame.config;
connection = athame.connection.set;
triggers.copy.athame = athame.refAttr "id";
triggers.secrets.athame = athame.refAttr "id";
};
};
}

18
hosts/samhain/meta.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, hosts, ... }: {
config = {
resources.samhain = {
provider = "null";
type = "resource";
connection = {
port = 62954;
host = "192.168.1.135";
};
};
deploy.systems.samhain = with config.resources; {
nixosConfig = hosts.samhain.config;
connection = samhain.connection.set;
triggers.copy.samhain = athame.refAttr "id";
triggers.secrets.samhain = athame.refAttr "id";
};
};
}

18
hosts/yule/meta.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, hosts, ... }: {
config = {
resources.yule = {
provider = "null";
type = "resource";
connection = {
port = 62954;
host = "192.168.1.92";
};
};
deploy.systems.yule = with config.resources; {
nixosConfig = hosts.yule.config;
connection = yule.connection.set;
triggers.copy.yule = athame.refAttr "id";
triggers.secrets.yule = athame.refAttr "id";
};
};
}