mio-ops/outputs.nix

186 lines
4 KiB
Nix
Raw Normal View History

2023-07-20 03:48:15 +00:00
{
self,
cardano-node,
2024-08-23 07:50:00 +00:00
colmena,
2024-09-25 01:36:49 +00:00
cosmicDesktop,
2023-08-03 11:18:05 +00:00
daedalus,
2023-07-20 03:48:15 +00:00
nix,
nixpkgs,
nixpkgsUnstable,
2024-08-23 10:07:08 +00:00
ragenix,
2023-07-20 03:48:15 +00:00
utils,
...
} @ inputs:
(utils.lib.eachDefaultSystem (system: let
deploymentName = "mio-ops";
2023-07-20 03:48:15 +00:00
pkgs = nixpkgs.legacyPackages."${system}";
nix_path = "nixpkgs=${nixpkgs}";
2023-07-20 03:48:15 +00:00
in {
devShell =
pkgs.callPackage
./shell.nix {
2024-08-23 07:50:00 +00:00
inherit (colmena.packages."${pkgs.system}") colmena;
2023-07-20 03:48:15 +00:00
inherit (nix.packages."${pkgs.system}") nix;
2024-08-23 10:07:08 +00:00
inherit (ragenix.packages."${pkgs.system}") ragenix;
inherit deploymentName;
inherit nix_path;
2023-07-20 03:48:15 +00:00
};
}))
// {
2024-08-23 07:50:00 +00:00
colmena = {
meta = {
description = "mio-ops deployment";
name = "deploymentName";
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
2024-09-28 04:06:46 +00:00
defaults = {pkgs, ...}: {
2024-09-25 01:36:49 +00:00
imports = [
./modules
cosmicDesktop.nixosModules.default
];
2024-09-23 09:31:53 +00:00
# make flake inputs accessible in NixOS
2024-08-25 09:22:49 +00:00
_module.args.inputs = inputs;
2024-09-28 04:06:46 +00:00
nixpkgs.overlays = [
(super: self: {
inherit (nixpkgsUnstable.legacyPackages."${pkgs.system}") toxvpn;
})
];
2024-09-23 09:31:53 +00:00
profiles.starship.enable = true;
profiles.toxvpn.enable = false;
2024-08-25 09:22:49 +00:00
};
# Comment out deployment line when building the SD Image.
2024-08-23 14:46:41 +00:00
airgead = {
imports = [
hosts/airgead
cardano-node.nixosModules.cardano-node
2024-08-23 14:46:41 +00:00
ragenix.nixosModules.default
];
2024-09-09 06:02:02 +00:00
deployment = {
2024-09-16 08:47:10 +00:00
tags = ["active" "vps"];
2024-09-09 06:02:02 +00:00
targetHost = "172.105.187.96";
};
2024-08-23 14:46:41 +00:00
};
brighde = {
imports = [
hosts/brighde
ragenix.nixosModules.default
];
2024-09-09 06:04:52 +00:00
deployment = {
tags = ["active"];
targetHost = "10.42.0.124";
};
2024-08-23 14:46:41 +00:00
};
ceilidh = {
imports = [
hosts/ceilidh
ragenix.nixosModules.default
];
};
cuallaidh = {
imports = [
hosts/cuallaidh
ragenix.nixosModules.default
];
2024-09-09 06:09:26 +00:00
deployment = {
2024-09-16 08:47:10 +00:00
tags = ["active" "vps"];
2024-09-09 06:09:26 +00:00
targetHost = "172.105.171.16";
};
2024-08-23 14:46:41 +00:00
};
#dhu = {
# imports = [
# hosts/dhu
# ragenix.nixosModules.default
# ];
#};
2024-08-23 14:46:41 +00:00
dionach = {
imports = [
hosts/dionach
ragenix.nixosModules.default
];
2024-09-09 06:11:27 +00:00
deployment = {
tags = ["active"];
targetHost = "10.42.0.190";
};
2024-08-23 14:46:41 +00:00
};
doilidh = {
imports = [
hosts/doilidh
ragenix.nixosModules.default
];
2024-09-09 06:15:51 +00:00
deployment = {
2024-09-16 08:47:10 +00:00
tags = ["active" "rPi"];
2024-09-09 06:15:51 +00:00
targetHost = "10.42.0.204";
};
2024-08-23 14:46:41 +00:00
};
eamhair = {
imports = [
hosts/eamhair
ragenix.nixosModules.default
];
2024-09-09 06:18:53 +00:00
deployment = {
2024-09-16 08:47:10 +00:00
tags = ["active" "rPi"];
2024-09-09 06:18:53 +00:00
targetHost = "10.42.0.205";
};
2024-09-28 04:06:46 +00:00
services.toxvpn.localip = "10.37.0.205";
2024-08-23 14:46:41 +00:00
};
iolear-beag = {
imports = [
hosts/iolear-beag
ragenix.nixosModules.default
];
2024-09-09 06:22:26 +00:00
deployment = {
tags = ["inactive"];
targetHost = "10.42.0.127";
};
2024-08-23 14:46:41 +00:00
};
#paidh-uachdar = {
# imports = [
# hosts/paidh-uachdar
# ragenix.nixosModules.default
# ];
#};
2024-08-23 14:46:41 +00:00
sanganto = {
imports = [
hosts/sanganto
ragenix.nixosModules.default
];
2024-09-28 04:06:46 +00:00
deployment.targetHost = "10.42.0.11";
2024-09-25 01:36:49 +00:00
roles.desktop.enable = true;
2024-09-27 03:13:06 +00:00
roles.desktopCraige.enable = true;
2024-09-28 04:06:46 +00:00
services.toxvpn.localip = "10.37.0.11";
2024-08-23 14:46:41 +00:00
};
sercanto = {
imports = [
hosts/sercanto
ragenix.nixosModules.default
];
deployment.targetHost = "10.42.0.180";
roles.desktop.enable = true;
roles.desktopCraige.enable = true;
2024-08-23 14:46:41 +00:00
};
sithlainnir = {
imports = [
hosts/sithlainnir
ragenix.nixosModules.default
];
2024-09-09 06:29:08 +00:00
deployment = {
tags = ["inactive"];
targetHost = "10.42.0.114";
};
2024-08-23 14:46:41 +00:00
};
teintidh = {
imports = [
hosts/teintidh
ragenix.nixosModules.default
];
2024-09-09 06:35:08 +00:00
deployment = {
tags = ["inactive"];
targetHost = "10.42.0.127";
};
2024-08-23 14:46:41 +00:00
};
2024-08-23 07:50:00 +00:00
};
2023-07-20 03:48:15 +00:00
}