2022-10-02 16:49:43 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-06-19 19:45:28 +02:00
|
|
|
nixpkgs-krypton.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-03-23 17:09:54 +01:00
|
|
|
nixpkgs-schule.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-06-30 23:31:13 +02:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2023-05-01 11:37:33 +02:00
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-13 17:53:45 +02:00
|
|
|
chaosevents = {
|
|
|
|
url = "git+https://git.clerie.de/clerie/chaosevents.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-05-04 14:35:30 +02:00
|
|
|
fernglas = {
|
|
|
|
url = "github:wobcom/fernglas";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-06-20 18:58:55 +02:00
|
|
|
fieldpoc.url = "git+https://git.clerie.de/clerie/fieldpoc.git";
|
2023-01-02 19:10:33 +01:00
|
|
|
nixos-exporter = {
|
|
|
|
url = "git+https://git.clerie.de/clerie/nixos-exporter.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-02-06 13:38:16 +01:00
|
|
|
solid-xmpp-alarm = {
|
|
|
|
url = "git+https://git.clerie.de/clerie/solid-xmpp-alarm.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-10-02 16:49:43 +02:00
|
|
|
};
|
2023-09-01 17:23:53 +02:00
|
|
|
outputs = { self, agenix, nixpkgs, nixos-hardware, chaosevents, fernglas, nixos-exporter, solid-xmpp-alarm, ... }@inputs: let
|
2023-03-23 16:45:30 +01:00
|
|
|
helper = (import ./lib/flake-helper.nix) inputs;
|
2022-10-02 20:38:02 +02:00
|
|
|
in {
|
2023-04-16 16:37:11 +02:00
|
|
|
clerie.hosts = {
|
2023-04-21 23:03:11 +02:00
|
|
|
aluminium = {
|
|
|
|
name = "aluminium";
|
|
|
|
group = "event";
|
|
|
|
};
|
2023-05-20 17:34:02 +02:00
|
|
|
astatine = {
|
|
|
|
name = "astatine";
|
|
|
|
group = "event";
|
2023-10-29 20:06:30 +01:00
|
|
|
modules = [
|
|
|
|
./users/criese-nethinks
|
|
|
|
];
|
2023-05-20 17:34:02 +02:00
|
|
|
};
|
2023-04-16 16:37:11 +02:00
|
|
|
backup-4 = { name = "backup-4"; };
|
2023-04-21 23:03:11 +02:00
|
|
|
beryllium = {
|
|
|
|
name = "beryllium";
|
|
|
|
group = "event";
|
|
|
|
};
|
2023-04-16 16:37:11 +02:00
|
|
|
carbon = { name = "carbon"; };
|
|
|
|
clerie-backup = { name = "clerie-backup"; };
|
|
|
|
dn42-il-gw1 = { name = "dn42-il-gw1"; };
|
|
|
|
dn42-il-gw5 = { name = "dn42-il-gw5"; };
|
|
|
|
dn42-il-gw6 = { name = "dn42-il-gw6"; };
|
|
|
|
dn42-ildix-clerie = { name = "dn42-ildix-clerie"; };
|
2023-05-20 17:34:02 +02:00
|
|
|
dn42-ildix-service = { name = "dn42-ildix-service"; };
|
2023-04-16 16:37:11 +02:00
|
|
|
gatekeeper = { name = "gatekeeper"; };
|
|
|
|
hydra-1 = { name = "hydra-1"; };
|
|
|
|
hydra-2 = { name = "hydra-2"; };
|
2023-06-30 23:31:13 +02:00
|
|
|
krypton = {
|
|
|
|
name = "krypton";
|
|
|
|
modules = [
|
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-x270
|
|
|
|
];
|
|
|
|
};
|
2023-05-20 17:13:45 +02:00
|
|
|
mail-2 = { name = "mail-2"; };
|
2023-04-16 16:37:11 +02:00
|
|
|
minecraft-2 = { name = "minecraft-2"; };
|
|
|
|
monitoring-3 = { name = "monitoring-3"; };
|
|
|
|
nonat = { name = "nonat"; };
|
|
|
|
osmium = { name = "osmium"; };
|
|
|
|
palladium = { name = "palladium"; };
|
|
|
|
porter = { name = "porter"; };
|
|
|
|
schule = { name = "schule"; };
|
|
|
|
storage-2 = { name = "storage-2"; };
|
|
|
|
web-2 = { name = "web-2"; };
|
2023-09-20 20:35:35 +02:00
|
|
|
zinc = { name = "zinc"; };
|
2023-10-22 22:35:36 +02:00
|
|
|
# nixfiles-auto-install: add new host above
|
2023-04-16 16:37:11 +02:00
|
|
|
_iso = { name = "_iso"; };
|
2022-10-03 15:26:15 +02:00
|
|
|
};
|
|
|
|
|
2023-04-16 16:37:11 +02:00
|
|
|
nixosConfigurations = helper.mapToNixosConfigurations self.clerie.hosts;
|
|
|
|
|
2022-10-02 16:49:43 +02:00
|
|
|
colmena = {
|
|
|
|
meta = {
|
2023-06-28 18:59:17 +02:00
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
};
|
2022-10-02 16:49:43 +02:00
|
|
|
};
|
2023-03-23 16:45:30 +01:00
|
|
|
} // helper.mapToColmenaHosts self.nixosConfigurations;
|
2022-10-02 16:49:43 +02:00
|
|
|
|
2023-10-25 18:28:37 +02:00
|
|
|
packages = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
2023-03-23 16:45:30 +01:00
|
|
|
pkgs = import nixpkgs {
|
2023-10-25 18:28:37 +02:00
|
|
|
inherit system;
|
2023-03-23 16:45:30 +01:00
|
|
|
overlays = [
|
|
|
|
(import ./pkgs/overlay.nix)
|
2023-09-01 17:23:53 +02:00
|
|
|
(_: _: {
|
2023-10-25 18:28:37 +02:00
|
|
|
inherit (agenix.packages.${system})
|
2023-09-01 17:23:53 +02:00
|
|
|
agenix;
|
2023-10-25 18:28:37 +02:00
|
|
|
inherit (chaosevents.packages.${system})
|
2023-09-01 17:23:53 +02:00
|
|
|
chaosevents;
|
|
|
|
})
|
2023-03-23 16:45:30 +01:00
|
|
|
];
|
2022-10-02 16:49:43 +02:00
|
|
|
};
|
2023-03-23 16:45:30 +01:00
|
|
|
in {
|
2022-10-02 20:38:02 +02:00
|
|
|
inherit (pkgs)
|
|
|
|
anycast_healthchecker
|
|
|
|
flask-excel
|
|
|
|
iot-data
|
2023-09-01 17:23:53 +02:00
|
|
|
nixfiles-add-secret
|
2023-10-20 23:45:43 +02:00
|
|
|
nixfiles-auto-install
|
2023-09-01 17:23:53 +02:00
|
|
|
nixfiles-generate-backup-secrets
|
2023-10-20 22:57:33 +02:00
|
|
|
nixfiles-generate-config
|
2023-07-29 12:19:18 +02:00
|
|
|
nixfiles-updated-inputs
|
2023-09-01 17:23:53 +02:00
|
|
|
nixfiles-update-ssh-host-keys
|
2022-10-02 20:38:02 +02:00
|
|
|
pyexcel-xlsx
|
|
|
|
pyexcel-webio
|
2023-09-02 21:47:45 +02:00
|
|
|
update-from-hydra
|
2022-10-02 20:38:02 +02:00
|
|
|
uptimestatus
|
|
|
|
wetter;
|
2023-10-25 18:28:37 +02:00
|
|
|
});
|
2022-10-02 20:38:02 +02:00
|
|
|
|
|
|
|
hydraJobs = {
|
2022-10-03 15:26:15 +02:00
|
|
|
inherit (self)
|
|
|
|
packages;
|
2023-03-23 16:45:30 +01:00
|
|
|
nixosConfigurations = helper.buildHosts self.nixosConfigurations;
|
2023-02-26 18:45:26 +01:00
|
|
|
iso = self.nixosConfigurations._iso.config.system.build.isoImage;
|
2022-10-02 20:38:02 +02:00
|
|
|
};
|
2023-07-01 16:59:24 +02:00
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
|
|
|
"https://nix-cache.clerie.de"
|
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g="
|
|
|
|
];
|
|
|
|
};
|
2022-10-02 16:49:43 +02:00
|
|
|
};
|
|
|
|
}
|