nix flake lock /etc/nixos --override-input sp-modules path:./sp-modules

This commit is contained in:
Alexander Tomokhov 2023-12-28 04:32:31 +04:00
parent 374711f324
commit 36eb48ab3c
2 changed files with 4 additions and 2 deletions

View file

@ -34,7 +34,7 @@ steps:
trap 'echo \$LINENO: "\$BASH_COMMAND"; exit 1' ERR
API_TOKEN="$USER_PASS"
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/0f886d76e93dd366db7c53a8f6b672702910b99b.tar.gz
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/9343332f1206995957f5c8e61ee2d7eafbbe6131.tar.gz
DNS_PROVIDER_TOKEN=$CLOUDFLARE_TOKEN
DNS_PROVIDER_TYPE=CLOUDFLARE
DOMAIN=$DOMAIN

View file

@ -480,7 +480,9 @@ installNix() {
infect() {
# this is needed solely for accepting the sp-module sub-flake
# see https://github.com/NixOS/nix/issues/3978#issuecomment-952418478
$NIX "${NIX_OPTS[@]}" flake lock ${LOCAL_FLAKE_DIR} --update-input sp-modules
cd /etc/nixos || return 1
$NIX "${NIX_OPTS[@]}" flake lock ${LOCAL_FLAKE_DIR} \
--override-input sp-modules path:./sp-modules
echo "nix build the configuration flake..."
if ! $NIX "${NIX_OPTS[@]}" build \