aboutsummaryrefslogtreecommitdiff
path: root/src/nix/install.sh
diff options
context:
space:
mode:
authordylhack.dev <followmelikethunder@pm.me>2023-01-24 21:28:54 +0300
committerGitHub <noreply@github.com>2023-01-24 21:28:54 +0300
commit676e824e92c7b2abe45f46c89580c96f99a8d43f (patch)
treeb824bfa381bbe3b9ca51c900d9054593e21847d4 /src/nix/install.sh
parent3a579894a02c7eb76184cf7305d67fe3f69b789f (diff)
features/nix: remove PGP check (#414)
* nix: remove PGP check * fix issues
Diffstat (limited to 'src/nix/install.sh')
-rwxr-xr-xsrc/nix/install.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nix/install.sh b/src/nix/install.sh
index 80f9ace..ed048fe 100755
--- a/src/nix/install.sh
+++ b/src/nix/install.sh
@@ -12,12 +12,6 @@ FLAKEURI="${FLAKEURI:-""}"
EXTRANIXCONFIG="${EXTRANIXCONFIG:-""}"
USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
-# Nix keys for securely verifying installer download signature per https://nixos.org/download.html#nix-verify-installation
-NIX_GPG_KEYS="B541D55301270E0BCF15CA5D8170B4726D7198DE"
-GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com
-keyserver hkps://keys.openpgp.org
-keyserver hkp://keyserver.pgp.com"
-
if [ "$(id -u)" -ne 0 ]; then
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
exit 1
@@ -61,10 +55,6 @@ else
find_prev_version_from_git_tags VERSION https://github.com/NixOS/nix "tags/"
curl -sSLf -o "${tmpdir}/install-nix" https://releases.nixos.org/nix/nix-${VERSION}/install
fi
- curl -sSLf -o "${tmpdir}/install-nix.asc" https://releases.nixos.org/nix/nix-${VERSION}/install.asc
- cd "${tmpdir}"
- receive_gpg_keys NIX_GPG_KEYS
- gpg2 --verify ./install-nix.asc
cd "${FEATURE_DIR}"
# Do a multi or single-user setup based on feature config