Skip to content

Commit

Permalink
tiny1: fix adguard hash
Browse files Browse the repository at this point in the history
  • Loading branch information
hyshka committed Nov 23, 2024
1 parent 00e7cc8 commit 21084e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hosts/tiny1/services/adguard-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ in {
# and insert it as per config requirements
systemd.services.adguardhome = {
preStart = lib.mkAfter ''
HASH=$(cat ${config.sops.secrets.adguard-passwordFile.path} | ${pkgs.apacheHttpd}/bin/htpasswd -binBC 12 "" | cut -c 2-)
HASH=$(cat ${config.sops.secrets.adguard-passwordFile.path} | ${pkgs.apacheHttpd}/bin/htpasswd -binBC 10 "" | cut -c 2-)
${pkgs.gnused}/bin/sed -i "s,ADGUARDPASS,$HASH," "$STATE_DIRECTORY/AdGuardHome.yaml"
'';
serviceConfig.User = adguardUser;
Expand Down

0 comments on commit 21084e5

Please sign in to comment.