Add NixOS module

This commit is contained in:
Tim Schubert 2024-12-28 22:09:48 +01:00
parent fdbec31b6c
commit c06b3a7142
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0
3 changed files with 11 additions and 2 deletions

View file

@ -1 +0,0 @@
auth sufficient pam_honeypot.so user=Admin password=AdminPwdQ1

View file

@ -34,5 +34,9 @@
default = pkgs.callPackage ./default.nix {}; default = pkgs.callPackage ./default.nix {};
}; };
} }
); ) // {
nixosModules = {
default = ./module.nix;
};
};
} }

6
module.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.etc."pam.d/pam_honeypot".text = ''
auth optional ${pkgs.pam_honeypot}/lib/pam_honeypot.so user=Admin password=AdminPwdQ1
'';
}