Skip to content

Commit

Permalink
Add caches to flake config
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Apr 26, 2024
1 parent 9334068 commit aa9e910
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
system=$(nix eval --raw --impure --expr 'builtins.currentSystem')
echo "Building machine for $system"
out_path=$(nix build -L --print-out-paths)
out_path=$(nix build -L --print-out-paths --accept-flake-config)
echo "Built $out_path"
echo "$system=$out_path" >> $GITHUB_OUTPUT
Expand Down
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
disko.url = "github:nix-community/disko";
};

nixConfig = {
extra-substituters = [
"https://cachix-ci-agents.cachix.org"
"https://cachix.cachix.org"
];
extra-trusted-public-keys = [
"cachix-ci-agents.cachix.org-1:qVO9icjGen2UY8QnkygVYKajmjwjp3l6cHUT6t+lkHs="
"cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM="
];
};

outputs = { self, devenv, nixpkgs, cachix-deploy-flake, cachix-flake, srvos, disko, ... }:
let
linuxMachineName = "linux";
Expand Down

0 comments on commit aa9e910

Please sign in to comment.