Fix Nix cache bootstrap command
This commit is contained in:
parent
0faaa806b6
commit
ed73d7d16a
1 changed files with 3 additions and 2 deletions
|
|
@ -104,6 +104,7 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [
|
path = [
|
||||||
pkgs.attic-client
|
pkgs.attic-client
|
||||||
|
pkgs.attic-server
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
];
|
];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
@ -126,7 +127,7 @@ in
|
||||||
|
|
||||||
if [ ! -s ${lib.escapeShellArg cfg.adminTokenFile} ]; then
|
if [ ! -s ${lib.escapeShellArg cfg.adminTokenFile} ]; then
|
||||||
umask 077
|
umask 077
|
||||||
atticd-atticadm make-token \
|
atticadm make-token \
|
||||||
--sub burrow-nix-cache-bootstrap \
|
--sub burrow-nix-cache-bootstrap \
|
||||||
--validity 10y \
|
--validity 10y \
|
||||||
--create-cache '*' \
|
--create-cache '*' \
|
||||||
|
|
@ -149,7 +150,7 @@ in
|
||||||
|
|
||||||
if [ ! -s ${lib.escapeShellArg cfg.ciPushTokenFile} ]; then
|
if [ ! -s ${lib.escapeShellArg cfg.ciPushTokenFile} ]; then
|
||||||
umask 077
|
umask 077
|
||||||
atticd-atticadm make-token \
|
atticadm make-token \
|
||||||
--sub burrow-ci-cache-publisher \
|
--sub burrow-ci-cache-publisher \
|
||||||
--validity ${lib.escapeShellArg cfg.ciPushTokenValidity} \
|
--validity ${lib.escapeShellArg cfg.ciPushTokenValidity} \
|
||||||
--pull ${lib.escapeShellArg cfg.cacheName} \
|
--pull ${lib.escapeShellArg cfg.cacheName} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue