dev.fron.io rc / 67c1015
hydra: frob jobs Tony Olagbaiye 8 months ago
2 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
801801 };
802802
803803 hydraJobs = rec {
804 tarball = with inputs.self.legacyPackages.${builtins.currentSystem};
805 { key ? toString ./secrets/keys/git }: runCommandLocal "nixrc" rec {
804 tarball = forAllSystems ({ system, pkgs, key ? toString ./secrets/keys/git, ... }:
805 pkgs.runCommandLocal "nixrc" rec {
806806 src = builtins.storePath inputs.self.outPath;
807 buildInputs = [ src git git-crypt ];
807 buildInputs = [ src pkgs.git pkgs.git-crypt ];
808808 outputs = [ "out" "tgz" ];
809809 } ''
810810 git clone --depth=1 file://$src $out && cd $out
811811 git-crypt unlock ${key}
812812 tar cvz $out > $tgz
813 '';
814 deployment = { system ? builtins.currentSystem }:
815 (import "${tarball}/configuration.nix" {}).defaultPackage.${system};
813 '');
814 deployment = forAllSystems ({ system, ... }:
815 (import "${tarball}/configuration.nix" {}).defaultPackage.${system}
816 );
816817 };
817818 };
818819 }
secrets/keys/git less more
Binary diff not shown