Browse Source

Unlimited locks for cluster users

main
Dustin Frisch 9 months ago
parent
commit
07d610b6f0
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 11
      shared/users.nix

11
shared/users.nix

@ -1,4 +1,4 @@
{ lib, config, ... }:
{ pkgs, lib, config, ... }:
with lib;
@ -43,6 +43,15 @@ in
security.pam.services."sshd".makeHomeDir = true;
security.pam.services."systemd-user".makeHomeDir = true;
security.pam.loginLimits = [
{
domain = "@cluster";
item = "memlock";
type = "-";
value = "unlimited";
}
];
sops.secrets."ldap/login/password" = {
owner = "nslcd";
sopsFile = ./secrets.yaml;

Loading…
Cancel
Save