nixos/sssd: fix the module
'system.nssModules' was not set correctly fix #91242
This commit is contained in:
parent
b77d8ead28
commit
5d36e00b7d
3 changed files with 21 additions and 1 deletions
|
@ -69,7 +69,7 @@ in {
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.nssModules = pkgs.sssd;
|
system.nssModules = [ pkgs.sssd ];
|
||||||
system.nssDatabases = {
|
system.nssDatabases = {
|
||||||
group = [ "sss" ];
|
group = [ "sss" ];
|
||||||
passwd = [ "sss" ];
|
passwd = [ "sss" ];
|
||||||
|
@ -92,4 +92,6 @@ in {
|
||||||
services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command";
|
services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command";
|
||||||
services.openssh.authorizedKeysCommandUser = "nobody";
|
services.openssh.authorizedKeysCommandUser = "nobody";
|
||||||
})];
|
})];
|
||||||
|
|
||||||
|
meta.maintainers = with maintainers; [ bbigras ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,6 +320,7 @@ in
|
||||||
spike = handleTest ./spike.nix {};
|
spike = handleTest ./spike.nix {};
|
||||||
sonarr = handleTest ./sonarr.nix {};
|
sonarr = handleTest ./sonarr.nix {};
|
||||||
sslh = handleTest ./sslh.nix {};
|
sslh = handleTest ./sslh.nix {};
|
||||||
|
sssd = handleTestOn ["x86_64-linux"] ./sssd.nix {};
|
||||||
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
||||||
sudo = handleTest ./sudo.nix {};
|
sudo = handleTest ./sudo.nix {};
|
||||||
switchTest = handleTest ./switch-test.nix {};
|
switchTest = handleTest ./switch-test.nix {};
|
||||||
|
|
17
nixos/tests/sssd.nix
Normal file
17
nixos/tests/sssd.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "sssd";
|
||||||
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
|
maintainers = [ bbigras ];
|
||||||
|
};
|
||||||
|
machine = { pkgs, ... }: {
|
||||||
|
services.sssd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
start_all()
|
||||||
|
machine.wait_for_unit("multi-user.target")
|
||||||
|
machine.wait_for_unit("sssd.service")
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in a new issue