inject nix conf in daemon

This commit is contained in:
Quentin 2023-03-24 15:58:28 +01:00
parent 52587ae44a
commit 1e5e0c5764
Signed by: quentin
GPG key ID: E9602264D639FF68
4 changed files with 4 additions and 4 deletions

View file

@ -100,6 +100,7 @@ job "builder" {
command = "nix-daemon" command = "nix-daemon"
volumes = [ volumes = [
"/var/cache/albatros/nix:/nix", "/var/cache/albatros/nix:/nix",
"local/nix.conf:/etc/nix/nix.conf",
"local/pin.sh:/usr/local/bin/pin.sh" "local/pin.sh:/usr/local/bin/pin.sh"
] ]
} }

View file

@ -3,7 +3,7 @@ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDS
max-jobs = auto max-jobs = auto
cores = 0 cores = 0
log-lines = 200 log-lines = 200
filter-syscalls = false filter-syscalls = true
sandbox = false sandbox = true
experimental-features = nix-command flakes experimental-features = nix-command flakes
post-build-hook = /usr/local/bin/pin.sh post-build-hook = /usr/local/bin/pin.sh

View file

@ -2,4 +2,3 @@
set -euxo pipefail set -euxo pipefail
echo "hook on $DRV_PATH" echo "hook on $DRV_PATH"
echo "hook on $DRV_PATH" 1>&2

View file

@ -15,7 +15,7 @@ import (
"strings" "strings"
) )
// Albatros // Albatros CI
type GitUser struct { type GitUser struct {
Name string `json:"name"` Name string `json:"name"`