mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 12:01:27 +00:00
nix flake lock /etc/nixos --override-input sp-modules path:./sp-modules
This commit is contained in:
parent
374711f324
commit
36eb48ab3c
|
@ -34,7 +34,7 @@ steps:
|
||||||
trap 'echo \$LINENO: "\$BASH_COMMAND"; exit 1' ERR
|
trap 'echo \$LINENO: "\$BASH_COMMAND"; exit 1' ERR
|
||||||
|
|
||||||
API_TOKEN="$USER_PASS"
|
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_TOKEN=$CLOUDFLARE_TOKEN
|
||||||
DNS_PROVIDER_TYPE=CLOUDFLARE
|
DNS_PROVIDER_TYPE=CLOUDFLARE
|
||||||
DOMAIN=$DOMAIN
|
DOMAIN=$DOMAIN
|
||||||
|
|
|
@ -480,7 +480,9 @@ installNix() {
|
||||||
infect() {
|
infect() {
|
||||||
# this is needed solely for accepting the sp-module sub-flake
|
# this is needed solely for accepting the sp-module sub-flake
|
||||||
# see https://github.com/NixOS/nix/issues/3978#issuecomment-952418478
|
# 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..."
|
echo "nix build the configuration flake..."
|
||||||
if ! $NIX "${NIX_OPTS[@]}" build \
|
if ! $NIX "${NIX_OPTS[@]}" build \
|
||||||
|
|
Loading…
Reference in a new issue