try populating minio nix store
This commit is contained in:
parent
67bc078773
commit
438d01d9c8
2 changed files with 15 additions and 12 deletions
|
@ -4,19 +4,13 @@ pipeline:
|
||||||
image: nixpkgs/nix-flakes:latest
|
image: nixpkgs/nix-flakes:latest
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.config/nix
|
- nix develop -c git lfs fetch --all
|
||||||
- echo "store = /var/build-nix-store" >> /etc/nix/nix.conf
|
|
||||||
- echo "sandbox = false" >> /etc/nix/nix.conf
|
|
||||||
- echo "accept-flake-config = true" >> /etc/nix/nix.conf
|
|
||||||
- echo "fallback = true" >> /etc/nix/nix.conf
|
|
||||||
- echo "pure-eval = true" >> /etc/nix/nix.conf
|
|
||||||
- echo "stalled-download-timeout = 16" >> /etc/nix/nix.conf
|
|
||||||
- echo "max-silent-time = 32" >> /etc/nix/nix.conf
|
|
||||||
- echo "sync-before-registering = true" >> /etc/nix/nix.conf
|
|
||||||
- cat /etc/nix/nix.conf
|
|
||||||
- nix develop --no-sandbox --eval-store local --show-trace -c git lfs fetch --all
|
|
||||||
- git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
|
- git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
|
||||||
- nix develop -c git push github --all --force
|
- nix develop -c git push github --all --force
|
||||||
secrets: [ github_token ]
|
- export AWS_ACCESS_KEY_ID="nix-builder"
|
||||||
|
- export AWS_ACCESS_KEY_ID="nix-builder"
|
||||||
|
- export AWS_SECRET_ACCESS_KEY="$MINIO_NIX_BUILDER_KEY"
|
||||||
|
- nix copy --all --to 's3://nix-store?endpoint=bolty:10000&schema=http'
|
||||||
|
secrets: [ github_token minio-nix-builder-key ]
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/woodpecker/nix-store:/var/build-nix-store
|
- /var/lib/woodpecker/nix-store:/var/build-nix-store
|
|
@ -3,4 +3,13 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
networking.firewall.allowedTCPPorts = [10000 10001];
|
||||||
|
services.minio = {
|
||||||
|
enable = true;
|
||||||
|
region = "home";
|
||||||
|
dataDir = ["/var/lib/minio/data"];
|
||||||
|
configDir = "/var/lib/minio/config";
|
||||||
|
listenAddress = ":10000";
|
||||||
|
consoleAddress = ":10001";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue