2023-07-20 03:48:15 +00:00
|
|
|
{
|
|
|
|
self,
|
2024-08-25 14:57:23 +00:00
|
|
|
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
|
2024-08-22 03:43:53 +00:00
|
|
|
deploymentName = "mio-ops";
|
2023-07-20 03:48:15 +00:00
|
|
|
pkgs = nixpkgs.legacyPackages."${system}";
|
2024-08-22 03:43:53 +00:00
|
|
|
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;
|
2024-08-22 03:43:53 +00:00
|
|
|
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;
|
2024-09-30 05:13:00 +00:00
|
|
|
profiles.toxvpn.enable = false;
|
2024-08-25 09:22:49 +00:00
|
|
|
};
|
2024-09-08 14:30:13 +00:00
|
|
|
# Comment out deployment line when building the SD Image.
|
2024-08-23 14:46:41 +00:00
|
|
|
airgead = {
|
|
|
|
imports = [
|
|
|
|
hosts/airgead
|
2024-08-25 14:57:23 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
ceitidh = {
|
|
|
|
imports = [
|
|
|
|
hosts/ceitidh
|
|
|
|
ragenix.nixosModules.default
|
|
|
|
];
|
2024-09-08 14:30:13 +00:00
|
|
|
deployment = {
|
2024-09-16 08:47:10 +00:00
|
|
|
tags = ["active" "rPi"];
|
2024-09-08 14:30:13 +00:00
|
|
|
targetHost = "10.42.0.203";
|
|
|
|
};
|
2024-08-23 14:46:41 +00:00
|
|
|
};
|
|
|
|
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
|
|
|
};
|
2024-09-08 13:35:21 +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
|
|
|
};
|
2024-09-08 22:18:26 +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
|
|
|
|
];
|
2024-09-30 07:06:18 +00:00
|
|
|
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
|
|
|
}
|