forgejo-runner: use attic cache by default
This commit is contained in:
parent
ce6c3a1d49
commit
3d4a76f145
5 changed files with 9 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -25,7 +25,7 @@ in
|
|||
|
||||
../nixos/chrony.nix
|
||||
|
||||
(import ../nixos/forgejo-runner.nix (args // { name = "argon"; tag = "ubuntu-latest-arm64"; nixTag = "arm64"; }))
|
||||
(import ../nixos/forgejo-runner.nix (args // { inherit secret; name = "argon"; tag = "ubuntu-latest-arm64"; nixTag = "arm64"; }))
|
||||
|
||||
../nixos/grafana.nix
|
||||
../nixos/loki.nix
|
||||
|
|
|
@ -34,7 +34,7 @@ in
|
|||
../nixos/fedifetcher.nix
|
||||
|
||||
../nixos/forgejo.nix
|
||||
(import ../nixos/forgejo-runner.nix (args // { name = "tanker"; tag = "ubuntu-latest-amd64"; nixTag = "amd64"; }))
|
||||
(import ../nixos/forgejo-runner.nix (args // { inherit secret; name = "tanker"; tag = "ubuntu-latest-amd64"; nixTag = "amd64"; }))
|
||||
|
||||
../nixos/headscale.nix
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config, name, tag, nixTag, ... }:
|
||||
{ pkgs, config, secret, name, tag, nixTag, ... }:
|
||||
|
||||
# Based on: https://git.clan.lol/clan/clan-infra/src/branch/main/modules/web01/gitea/actions-runner.nix
|
||||
|
||||
|
@ -53,8 +53,14 @@ in
|
|||
cat <<NIX_CONFIG > etc/nix/nix.conf
|
||||
accept-flake-config = true
|
||||
experimental-features = nix-command flakes
|
||||
substituters = https://attic.cache.daniel.sx/nifoc-ci?priority=1 https://nix-community.cachix.org?priority=2 https://cache.nixos.org/
|
||||
trusted-public-keys = nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
||||
NIX_CONFIG
|
||||
|
||||
cat <<NIX_NETRC > etc/nix/netrc
|
||||
${secret.forgejo_runner.netrc}
|
||||
NIX_NETRC
|
||||
|
||||
cat <<NSSWITCH > etc/nsswitch.conf
|
||||
passwd: files mymachines systemd
|
||||
group: files mymachines systemd
|
||||
|
|
Loading…
Reference in a new issue