Allow PAM resource limits to be integers

This commit is contained in:
Eelco Dolstra 2013-10-17 15:36:59 +02:00
parent af8fc748dd
commit ff74d78c9d

View File

@ -218,10 +218,9 @@ let
# Create a limits.conf(5) file. # Create a limits.conf(5) file.
makeLimitsConf = limits: makeLimitsConf = limits:
pkgs.writeText "limits.conf" pkgs.writeText "limits.conf"
(concatStringsSep "\n" (concatMapStrings ({ domain, type, item, value }:
(map ({ domain, type, item, value }: "${domain} ${type} ${item} ${toString value}\n")
concatStringsSep " " [ domain type item value ]) limits);
limits));
motd = pkgs.writeText "motd" config.users.motd; motd = pkgs.writeText "motd" config.users.motd;