From f7b872aba004f971fd3cc089f87940f65dfba0cc Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 6 Jun 2025 21:00:50 +0000 Subject: [PATCH] programs: add htpasswd --- hosts/common/programs/assorted.nix | 1 + hosts/common/programs/default.nix | 1 + hosts/common/programs/htpasswd.nix | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 hosts/common/programs/htpasswd.nix diff --git a/hosts/common/programs/assorted.nix b/hosts/common/programs/assorted.nix index 1952ae412..80f17af35 100644 --- a/hosts/common/programs/assorted.nix +++ b/hosts/common/programs/assorted.nix @@ -66,6 +66,7 @@ in "hdparm" "hping" "htop" + "htpasswd" "iftop" "inetutils" # for telnet "iotop" diff --git a/hosts/common/programs/default.nix b/hosts/common/programs/default.nix index 4954bbbf5..c19b11fb6 100644 --- a/hosts/common/programs/default.nix +++ b/hosts/common/programs/default.nix @@ -101,6 +101,7 @@ ./haredoc.nix ./helix.nix ./htop + ./htpasswd.nix ./iio-sensor-proxy.nix ./imagemagick.nix ./inkscape.nix diff --git a/hosts/common/programs/htpasswd.nix b/hosts/common/programs/htpasswd.nix new file mode 100644 index 000000000..a15dab27d --- /dev/null +++ b/hosts/common/programs/htpasswd.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + sane.programs.htpasswd = { + packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.apacheHttpd "htpasswd"; + sandbox.autodetectCliPaths = "existingFileOrParent"; # for -c; creating passwd files + }; +}