/etc/nixos#sp-nixos => /etc/nixos#default

This commit is contained in:
Alexander Tomokhov 2023-12-27 14:05:09 +04:00
parent 05e395d6af
commit c95b9d0f62
2 changed files with 4 additions and 4 deletions

View file

@ -29,14 +29,14 @@ steps:
set -o errexit set -o errexit
API_TOKEN="$USER_PASS" API_TOKEN="$USER_PASS"
CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/eb9aebc8ace3f82748dc325374058df534056420.tar.gz CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/SelfPrivacy/selfprivacy-nixos-template/archive/58d43eec2f69c8fada5eea3e20b917de26bf8bb6.tar.gz
DB_PASSWORD="$USER_PASS" DB_PASSWORD="$USER_PASS"
DNS_PROVIDER_TOKEN=$CLOUDFLARE_TOKEN DNS_PROVIDER_TOKEN=$CLOUDFLARE_TOKEN
DNS_PROVIDER_TYPE=CLOUDFLARE DNS_PROVIDER_TYPE=CLOUDFLARE
DOMAIN=$DOMAIN DOMAIN=$DOMAIN
HOSTNAME=selfprivacy-ci-test HOSTNAME=selfprivacy-ci-test
LUSER=cicdcicd LUSER=cicdcicd
NIXOS_CONFIG_NAME=sp-nixos NIXOS_CONFIG_ID=default
NIX_VERSION=2.18.1 NIX_VERSION=2.18.1
PROVIDER=hetzner PROVIDER=hetzner
SSH_AUTHORIZED_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMBb3yVhYF4slhf1iQCiGLOVcbGKP/MmkQiEMl2un+4K" SSH_AUTHORIZED_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMBb3yVhYF4slhf1iQCiGLOVcbGKP/MmkQiEMl2un+4K"

View file

@ -15,7 +15,7 @@
: "${DB_PASSWORD:?DB_PASSWORD variable is not set}" : "${DB_PASSWORD:?DB_PASSWORD variable is not set}"
: "${USER_PASS:?USER_PASS variable is not set}" : "${USER_PASS:?USER_PASS variable is not set}"
: "${NIX_VERSION:?NIX_VERSION variable is not set}" : "${NIX_VERSION:?NIX_VERSION variable is not set}"
: "${NIXOS_CONFIG_NAME:?NIXOS_CONFIG_NAME variable is not set}" : "${NIXOS_CONFIG_ID:?NIXOS_CONFIG_ID variable is not set}"
: "${CONFIG_URL:?CONFIG_URL variable is not set}" : "${CONFIG_URL:?CONFIG_URL variable is not set}"
: "${SSH_AUTHORIZED_KEY:=}" : "${SSH_AUTHORIZED_KEY:=}"
@ -424,7 +424,7 @@ infect() {
echo "nix build the configuration flake..." echo "nix build the configuration flake..."
if ! $NIX "${NIX_OPTS[@]}" build \ if ! $NIX "${NIX_OPTS[@]}" build \
--profile /nix/var/nix/profiles/system \ --profile /nix/var/nix/profiles/system \
${LOCAL_FLAKE_DIR}/#nixosConfigurations.sp-nixos.config.system.build.toplevel ${LOCAL_FLAKE_DIR}/#nixosConfigurations."$NIXOS_CONFIG_ID".config.system.build.toplevel
then then
echo "Failed!" echo "Failed!"
exit 1 exit 1