From f36329a299ecc9bf1e7d11f2f3c110709c899888 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Tue, 8 Oct 2024 08:31:44 -0600 Subject: [PATCH] nixos: Switch back to setting a placeholder HS256 secret when checking config --- nixos/atticd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/atticd.nix b/nixos/atticd.nix index c98af78..cfd3c42 100644 --- a/nixos/atticd.nix +++ b/nixos/atticd.nix @@ -16,7 +16,7 @@ let } '' cat $configFile - export ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64="$(${pkgs.openssl}/bin/openssl genrsa -traditional 4096 | ${pkgs.coreutils}/bin/base64 -w0)" + export ATTIC_SERVER_TOKEN_HS256_SECRET_BASE64="dGVzdCBzZWNyZXQ=" export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:" ${cfg.package}/bin/atticd --mode check-config -f $configFile cat <$configFile >$out