summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-11-07 20:27:19 +0100
committerlassulus <git@lassul.us>2023-11-07 20:27:19 +0100
commitc79f5fc9faa7790fa7612a8c121b3637faf08470 (patch)
tree0a9659e361e887e3c0c1591a769678d5650b4a9c
parent8a62119217a92691e80fb0991b223694419373d4 (diff)
flake: export all systems
-rw-r--r--flake.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 1ff183e74..a44446b08 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,15 +12,15 @@
description = "stockholm";
outputs = { self, nixpkgs, nix-writers }: {
- nixosConfigurations.hotdog = nixpkgs.lib.nixosSystem {
+ nixosConfigurations = nixpkgs.lib.mapAttrs (machineName: _: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.stockholm = self;
specialArgs.nix-writers = nix-writers;
- specialArgs.secrets = toString ./krebs/0tests/data/secrets;
+ specialArgs.secrets = nixpkgs.lib.mkDefault (toString ./krebs/0tests/data/secrets);
modules = [
- ./krebs/1systems/hotdog/config.nix
+ ./krebs/1systems/${machineName}/config.nix
];
- };
+ }) (builtins.readDir ./krebs/1systems);
nixosModules =
let