diff options
author | lassulus <lassulus@lassul.us> | 2018-04-05 17:34:17 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-04-05 17:34:17 +0200 |
commit | 8ff594c92fb404e13f240d19a76d34e0d1db6a29 (patch) | |
tree | 33df0a3fbee00da4f00d92a67fd34a65b6a7a0fb /krebs/5pkgs/simple/hashPassword/default.nix | |
parent | 0a4df44a8a3e925bcf59802fcdb59dc16157bae7 (diff) |
hashPassword: passthrough arguments
Diffstat (limited to 'krebs/5pkgs/simple/hashPassword/default.nix')
-rw-r--r-- | krebs/5pkgs/simple/hashPassword/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/hashPassword/default.nix b/krebs/5pkgs/simple/hashPassword/default.nix index 3da65ad79..3c604be80 100644 --- a/krebs/5pkgs/simple/hashPassword/default.nix +++ b/krebs/5pkgs/simple/hashPassword/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, ... }: pkgs.writeDashBin "hashPassword" '' - # usage: hashPassword + # usage: hashPassword [...] set -euf export PATH=${lib.makeBinPath (with pkgs; [ @@ -11,5 +11,5 @@ pkgs.writeDashBin "hashPassword" '' ])} salt=$(openssl rand -base64 16 | tr -d '+=' | head -c 16) - exec mkpasswd -m sha-512 -S "$salt" + exec mkpasswd -m sha-512 -S "$salt" "$@" '' |