Fediversity/infra/flake-part.nix

118 lines
3.2 KiB
Nix
Raw Normal View History

2024-12-12 11:14:03 +01:00
{ self, inputs, ... }:
{
nixops4Deployments.git =
{ providers, ... }:
{
providers.local = inputs.nixops4-nixos.modules.nixops4Provider.local;
resources = {
vm02116 = {
type = providers.local.exec;
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
ssh = {
host = "185.206.232.34";
opts = "";
2024-12-12 11:14:03 +01:00
hostPublicKey = self.keys.systems.vm02116;
};
nixpkgs = inputs.nixpkgs;
nixos.module = {
2024-12-11 13:27:37 +01:00
imports = [
./vm02116
self.nixosModules.ageSecrets
2024-12-13 12:37:25 +01:00
{ fediversity.hostPublicKey = self.keys.systems.vm02116; }
2024-12-16 13:15:34 +01:00
];
};
};
fedi300 = {
type = providers.local.exec;
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
ssh = {
host = "95.215.187.30";
opts = "";
hostPublicKey = self.keys.systems.fedi300;
};
nixpkgs = inputs.nixpkgs;
nixos.module = {
imports = [
./fedi300
self.nixosModules.ageSecrets
{ fediversity.hostPublicKey = self.keys.systems.fedi300; }
2024-12-11 13:27:37 +01:00
];
};
};
2024-12-16 13:06:35 +01:00
};
};
2024-12-16 13:06:35 +01:00
nixops4Deployments.web =
{ providers, ... }:
{
providers.local = inputs.nixops4-nixos.modules.nixops4Provider.local;
resources = {
vm02187 = {
type = providers.local.exec;
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
ssh = {
2024-12-16 13:06:35 +01:00
host = "185.206.232.187";
opts = "";
2024-12-16 13:06:35 +01:00
hostPublicKey = self.keys.systems.vm02187;
};
nixpkgs = inputs.nixpkgs;
nixos.module = {
2024-12-11 13:32:41 +01:00
imports = [
2024-12-16 13:06:35 +01:00
./vm02187
self.nixosModules.ageSecrets
2024-12-16 13:06:35 +01:00
{ fediversity.hostPublicKey = self.keys.systems.vm02187; }
2024-12-11 13:32:41 +01:00
];
};
};
2024-12-16 13:06:35 +01:00
};
};
2024-12-16 13:06:35 +01:00
nixops4Deployments.other =
{ providers, ... }:
{
providers.local = inputs.nixops4-nixos.modules.nixops4Provider.local;
resources = {
vm02179 = {
type = providers.local.exec;
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
ssh = {
2024-12-16 13:06:35 +01:00
host = "185.206.232.179";
opts = "";
2024-12-16 13:06:35 +01:00
hostPublicKey = self.keys.systems.vm02179;
};
nixpkgs = inputs.nixpkgs;
nixos.module = {
2024-12-11 13:32:41 +01:00
imports = [
2024-12-16 13:06:35 +01:00
./vm02179
self.nixosModules.ageSecrets
2024-12-16 13:06:35 +01:00
{ fediversity.hostPublicKey = self.keys.systems.vm02179; }
2024-12-11 13:32:41 +01:00
];
};
};
2024-11-18 11:55:50 +01:00
2024-12-16 13:06:35 +01:00
vm02186 = {
2024-11-18 11:55:50 +01:00
type = providers.local.exec;
imports = [ inputs.nixops4-nixos.modules.nixops4Resource.nixos ];
ssh = {
2024-12-16 13:06:35 +01:00
host = "185.206.232.186";
2024-11-18 11:55:50 +01:00
opts = "";
2024-12-16 13:06:35 +01:00
hostPublicKey = self.keys.systems.vm02186;
2024-11-18 11:55:50 +01:00
};
nixpkgs = inputs.nixpkgs;
nixos.module = {
imports = [
2024-12-16 13:06:35 +01:00
./vm02186
self.nixosModules.ageSecrets
2024-12-16 13:06:35 +01:00
{ fediversity.hostPublicKey = self.keys.systems.vm02186; }
];
2024-11-18 11:55:50 +01:00
};
};
};
};
}