Skip to content

Commit

Permalink
doas: add enablePAM option
Browse files Browse the repository at this point in the history
New option "withPAM" controls whether to build support for pluggable
authetincation modules. Default value is "true", which correspond to
existing behaviour. Futhermore, with default configuration, this change
do not cause rebuild.
  • Loading branch information
KAction committed Oct 9, 2020
1 parent 2c7646b commit 99de53b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/tools/security/doas/default.nix
Expand Up @@ -4,6 +4,7 @@
, bison
, pam

, withPAM ? true
, withTimestamp ? true
}:

Expand All @@ -23,6 +24,7 @@ stdenv.mkDerivation rec {

configureFlags = [
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
(lib.optionalString (!withPAM) "--without-pam")
"--pamdir=${placeholder "out"}/etc/pam.d"
];

Expand Down

0 comments on commit 99de53b

Please sign in to comment.