commit 880741439c03d0025402791f944081e62720c8a9
parent 3fee2b7355e34ab52fcfd3c6ba9060c143a22074
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 19 May 2023 18:30:22 +0200
parent 3fee2b7355e34ab52fcfd3c6ba9060c143a22074
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 19 May 2023 18:30:22 +0200
configurations/common/programs/scripts: fix path for pwgen
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configurations/common/programs/scripts.nix b/configurations/common/programs/scripts.nix @@ -102,7 +102,7 @@ let # check if password-file exists, if not create it if [ ! -e /mnt/backup/restic-$HOSTNAME/$1.restic-passwd ]; then - echo -e "$(pwgen -N1 -B 32)" > /mnt/backup/restic-$HOSTNAME/$1.restic-passwd; + echo -e "$(${pkgs.pwgen}/bin/pwgen -N1 -B 32)" > /mnt/backup/restic-$HOSTNAME/$1.restic-passwd; sync; fi