dev.fron.io rc / 1993791
hosts(delta): enable hydra Tony Olagbaiye 10 months ago
3 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
792792 secrets = import ./secrets { inherit lib; };
793793 };
794794
795 hydraJobs = {
795 hydraJobs = rec {
796796 tarball = with inputs.self.legacyPackages.${builtins.currentSystem};
797 runCommandLocal "nixrc" rec {
797 { key ? toString ./secrets/keys/git }: runCommandLocal "nixrc" rec {
798798 src = builtins.storePath inputs.self.outPath;
799799 buildInputs = [ src git git-crypt ];
800800 outputs = [ "out" "tgz" ];
801801 } ''
802802 git clone --depth=1 file://$src $out && cd $out
803 git-crypt unlock ${toString ./secrets/keys/git}
803 git-crypt unlock ${key}
804804 tar cvz $out > $tgz
805805 '';
806 deployment = with import "${inputs.self.hydraJobs.tarball}/configuration.nix" {};
807 defaultPackage;
806 deployment = { system ? builtins.currentSystem }:
807 (import "${tarball}/configuration.nix" {}).defaultPackage.${system};
808808 };
809809 };
810810 }
1313 ../../profiles/services/aria2
1414 ../../profiles/services/guix
1515 ../../profiles/services/searx
16 ../../profiles/services/hydra
1617 ../../profiles/networking/ipfs
1718 ../../profiles/networking/bluetooth
1819 ../../profiles/networking/wireguard
55 services.hydra = lib.mkIf cfg.enable {
66 hydraURL = "http://localhost:3000";
77 notificationSender = "hydra@${domains.home}";
8 buildMAchinesFiles = [];
8 buildMachinesFiles = [];
99 useSubstitutes = true;
1010 };
1111 }