Repository navigation
NixOS
Howdy Next provides a flake and NixOS module for x86_64-linux and aarch64-linux.
Important
Enabling the NixOS module installs and prepares Howdy Next, but does not edit any PAM
services. Add pam_howdy.so only to the PAM services you want.
Choose either a pinned release tag from
Releases or the default branch (HEAD):
# Stable release (update the tag manually when upgrading)
howdy-next.url = "git+https://github.com/nathawatc/howdy-next?ref=refs/tags/<RELEASE_TAG>";
# Or follow the default branch
howdy-next.url = "git+https://github.com/nathawatc/howdy-next";{
inputs.howdy-next.url = "SELECTED_HOWDY_NEXT_URL";
outputs = { self, nixpkgs, howdy-next, ... }: {
nixosConfigurations.HOSTNAME = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
howdy-next.nixosModules.default
./configuration.nix
];
};
};
}Update the lock file after adding or changing the input:
nix flake update howdy-next{
services.howdy-next.enable = true;
}When enabled, the module automatically:
- Installs
howdy-nextintoenvironment.systemPackages - Registers the setuid wrapper at
/run/wrappers/bin/howdy-auth-helper - Applies the Polkit 127 device-access drop-in when
security.polkit.enableis true - Provisions mutable state via
systemd.tmpfiles.rules(/etc/howdy,/etc/howdy/config.ini,/var/lib/howdy/{models,user-models},/var/log/howdy)
Rebuild, then complete the model download, camera config, enrollment, and sudo howdy test steps
from Quickstart on Home (see man howdy and man howdy.ini for full options).
Configure PAM declaratively through security.pam.services.<service>.rules.auth rather than
editing generated /etc/pam.d/* files. See man pam_howdy for workaround= behavior.
Warning
NixOS marks security.pam.services.<name>.rules as experimental. Keep changes minimal, keep a
recovery path open, and never test a display manager or lock screen first.
{ config, ... }:
{
security.pam.services.sudo.rules.auth.howdy = {
order = config.security.pam.services.sudo.rules.auth.unix.order - 10;
control = "sufficient";
modulePath = "${config.services.howdy-next.package}/lib/security/pam_howdy.so";
settings.workaround = "native";
};
}{ config, ... }:
{
security.pam.services."polkit-1".rules.auth.howdy = {
order = config.security.pam.services."polkit-1".rules.auth.unix.order - 10;
control = "sufficient";
modulePath = "${config.services.howdy-next.package}/lib/security/pam_howdy.so";
settings.workaround = "native-input";
};
}For lock screens that collect a password before calling PAM (such as Waylock or Omarchy), order
pam_howdy.so after unix instead of before it — see Lock Screens and
PAM Integration.
Rebuild and test low-risk paths first:
sudo nixos-rebuild switch --flake .#HOSTNAME
sudo -k && sudo true
pkexec trueInspect generated PAM rules and logs if authentication fails:
cat /etc/pam.d/<service>
journalctl -b -t pam_howdy --no-pagerTo temporarily disable Howdy without rebuilding, run sudo howdy disable 1 (see man howdy). To
upgrade, update the tag (if pinned), run nix flake update howdy-next, and rebuild.