flake.nix: Remove colmena
This commit is contained in:
parent
9210767036
commit
1f7ffd82ba
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
# Deployment
|
# Deployment
|
||||||
bij
|
bij
|
||||||
colmena
|
|
||||||
clerie-sops
|
clerie-sops
|
||||||
clerie-sops-edit
|
clerie-sops-edit
|
||||||
sops
|
sops
|
||||||
|
@ -92,12 +92,6 @@
|
|||||||
|
|
||||||
nixosConfigurations = helper.mapToNixosConfigurations self.clerie.hosts;
|
nixosConfigurations = helper.mapToNixosConfigurations self.clerie.hosts;
|
||||||
|
|
||||||
colmena = {
|
|
||||||
meta = {
|
|
||||||
nixpkgs = localNixpkgs.x86_64-linux;
|
|
||||||
};
|
|
||||||
} // helper.mapToColmenaHosts self.nixosConfigurations;
|
|
||||||
|
|
||||||
overlays = {
|
overlays = {
|
||||||
nixfilesInputs = import ./flake/overlay.nix inputs;
|
nixfilesInputs = import ./flake/overlay.nix inputs;
|
||||||
clerie = import ./pkgs/overlay.nix;
|
clerie = import ./pkgs/overlay.nix;
|
||||||
|
@ -11,8 +11,6 @@ let
|
|||||||
inherit ("flake-helper")
|
inherit ("flake-helper")
|
||||||
generateNixosSystem
|
generateNixosSystem
|
||||||
mapToNixosConfigurations
|
mapToNixosConfigurations
|
||||||
generateColmenaHost
|
|
||||||
mapToColmenaHosts
|
|
||||||
buildHosts;
|
buildHosts;
|
||||||
clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
|
clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
|
||||||
};
|
};
|
||||||
|
@ -55,20 +55,5 @@ rec {
|
|||||||
|
|
||||||
mapToNixosConfigurations = hosts: builtins.mapAttrs (name: host: generateNixosSystem host) hosts;
|
mapToNixosConfigurations = hosts: builtins.mapAttrs (name: host: generateNixosSystem host) hosts;
|
||||||
|
|
||||||
generateColmenaHost = name: hostSystem: {
|
|
||||||
deployment = {
|
|
||||||
targetHost = hostSystem.config.networking.fqdn;
|
|
||||||
targetUser = null;
|
|
||||||
tags = let
|
|
||||||
group = nixpkgs.lib.attrByPath [ "clerie" "monitoring" "serviceLevel" ] null hostSystem.config;
|
|
||||||
in nixpkgs.lib.lists.optional (group != null) group;
|
|
||||||
};
|
|
||||||
nixpkgs.system = hostSystem.config.nixpkgs.system;
|
|
||||||
imports = hostSystem._module.args.modules;
|
|
||||||
deployment.allowLocalDeployment = builtins.any (n: n == name) [ "osmium" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
mapToColmenaHosts = hosts: builtins.mapAttrs (generateColmenaHost) hosts;
|
|
||||||
|
|
||||||
buildHosts = hosts: builtins.mapAttrs (name: host: host.config.system.build.toplevel) (nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") hosts);
|
buildHosts = hosts: builtins.mapAttrs (name: host: host.config.system.build.toplevel) (nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") hosts);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user