From ff74d78c9d97f39db3a995432e7b3c4b00ce2c61 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Oct 2013 15:36:59 +0200 Subject: [PATCH] Allow PAM resource limits to be integers --- nixos/modules/security/pam.nix | 7 +++---- 1 file 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;