Skip to content

Commit

Permalink
add passwd reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hyshka committed Nov 23, 2024
1 parent 21084e5 commit 4cdf722
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hosts/tiny1/services/adguard-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ in {
# insert password before service starts
# password in sops is unencrypted, so we bcrypt it
# and insert it as per config requirements
# Ref: https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#reset-web-password
systemd.services.adguardhome = {
preStart = lib.mkAfter ''
HASH=$(cat ${config.sops.secrets.adguard-passwordFile.path} | ${pkgs.apacheHttpd}/bin/htpasswd -binBC 10 "" | cut -c 2-)
Expand Down

0 comments on commit 4cdf722

Please sign in to comment.