From 9ef771e9210142d72eac3f3d4cc2fd8082bbd164 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 24 May 2022 23:35:56 +0200 Subject: [PATCH] effects: init, deploy prophet --- flake.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/flake.nix b/flake.nix index 05e3518..94a2e70 100644 --- a/flake.nix +++ b/flake.nix @@ -83,6 +83,7 @@ pkgs = nixpkgsFor system; }); + effects = inputs.hercules-ci-effects.lib.withPkgs (nixpkgsFor "x86_64-linux"); in { nixosModules = aspect.modules; @@ -101,5 +102,20 @@ systems = lib.mapAttrs (_: x: x.config.system.build.toplevel) self.nixosConfigurations; inherit (self) packages; }; + + effects = { branch, ... }: { + deploy-prophet = effects.runIf (branch == "hci-improvements") (effects.runNixOS { + config = self.nixosConfigurations.prophet.config // { outPath = "wtfwtfwtfwtfwtfwtf"; }; + secretsMap.ssh = "deploy-ssh"; + + userSetupScript = '' + writeSSHKey ssh + cat >>~/.ssh/known_hosts <