From facba1f63adac7920f0460a5cf94c358606fb72d Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 10 Mar 2025 10:09:37 +0100 Subject: [PATCH] nixos/code-server: recommend libargon2 over `npx argon2-cli` --- nixos/modules/services/web-apps/code-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/code-server.nix b/nixos/modules/services/web-apps/code-server.nix index c310fa70b944..3ec119d76b0a 100644 --- a/nixos/modules/services/web-apps/code-server.nix +++ b/nixos/modules/services/web-apps/code-server.nix @@ -86,7 +86,7 @@ in hashedPassword = lib.mkOption { default = ""; description = '' - Create the password with: `echo -n 'thisismypassword' | npx argon2-cli -e`. + Create the password with: {command}`echo -n 'thisismypassword' | nix run nixpkgs#libargon2 -- "$(head -c 20 /dev/random | base64)" -e` ''; type = lib.types.str; };