summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-12-04 15:06:05 +0100
committermakefu <github@syntax-fehler.de>2023-12-04 15:06:05 +0100
commit2ca25d5fc3b5bcabe15b0934208b5f5201420eb2 (patch)
treee41e5c3114a57555eca53b4521b99c22ea2056ba /flake.nix
parentf157c7b47f249470b4f5cebdc53ce391d938b0b4 (diff)
parentc660bedbb94a9a08c50050a3447f4fc5ba90fd69 (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 1ff183e74..516648849 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,15 +12,17 @@
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;
modules = [
- ./krebs/1systems/hotdog/config.nix
+ ./krebs/1systems/${machineName}/config.nix
+ {
+ krebs.secret.directory = "/var/src/secrets";
+ }
];
- };
+ }) (builtins.readDir ./krebs/1systems);
nixosModules =
let