mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
project-wide: Created meta.nix per host
This commit is contained in:
parent
1868690888
commit
10c91d1e16
6 changed files with 136 additions and 90 deletions
18
hosts/athame/meta.nix
Normal file
18
hosts/athame/meta.nix
Normal 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
18
hosts/samhain/meta.nix
Normal 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
18
hosts/yule/meta.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue