diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-17 15:36:59 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-17 15:36:59 +0200 |
commit | ff74d78c9d97f39db3a995432e7b3c4b00ce2c61 (patch) | |
tree | 14e577fa51a87598efed6bcdf67e371c10d449b0 | |
parent | af8fc748dd408bc296c346898590cd499d69ffad (diff) | |
download | nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar.gz nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar.bz2 nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar.lz nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar.xz nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.tar.zst nixlib-ff74d78c9d97f39db3a995432e7b3c4b00ce2c61.zip |
Allow PAM resource limits to be integers
-rw-r--r-- | nixos/modules/security/pam.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nixos/modules/security/pam.nix b/nixos/modules/security/pam.nix index 2b99eca7d6be..1081b41299de 100644 --- a/nixos/modules/security/pam.nix +++ b/nixos/modules/security/pam.nix @@ -218,10 +218,9 @@ let # Create a limits.conf(5) file. makeLimitsConf = limits: pkgs.writeText "limits.conf" - (concatStringsSep "\n" - (map ({ domain, type, item, value }: - concatStringsSep " " [ domain type item value ]) - limits)); + (concatMapStrings ({ domain, type, item, value }: + "${domain} ${type} ${item} ${toString value}\n") + limits); motd = pkgs.writeText "motd" config.users.motd; |