Add NixOS module
This commit is contained in:
parent
fdbec31b6c
commit
c06b3a7142
3 changed files with 11 additions and 2 deletions
|
@ -1 +0,0 @@
|
|||
auth sufficient pam_honeypot.so user=Admin password=AdminPwdQ1
|
|
@ -34,5 +34,9 @@
|
|||
default = pkgs.callPackage ./default.nix {};
|
||||
};
|
||||
}
|
||||
);
|
||||
) // {
|
||||
nixosModules = {
|
||||
default = ./module.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
6
module.nix
Normal file
6
module.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue