effects: init, deploy prophet
This commit is contained in:
parent
28e1430d55
commit
9ef771e921
1 changed files with 16 additions and 0 deletions
16
flake.nix
16
flake.nix
|
@ -83,6 +83,7 @@
|
||||||
pkgs = nixpkgsFor system;
|
pkgs = nixpkgsFor system;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
effects = inputs.hercules-ci-effects.lib.withPkgs (nixpkgsFor "x86_64-linux");
|
||||||
in {
|
in {
|
||||||
nixosModules = aspect.modules;
|
nixosModules = aspect.modules;
|
||||||
|
|
||||||
|
@ -101,5 +102,20 @@
|
||||||
systems = lib.mapAttrs (_: x: x.config.system.build.toplevel) self.nixosConfigurations;
|
systems = lib.mapAttrs (_: x: x.config.system.build.toplevel) self.nixosConfigurations;
|
||||||
inherit (self) packages;
|
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 <<EOF
|
||||||
|
prophet.node.privatevoid.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZ4FyGi69MksEn+UJZ87vw1APqiZmPNlEYIr0CbEoGv
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
ssh.destination = "root@prophet.node.privatevoid.net";
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue