Skip to content

Commit

Permalink
Merge pull request #96179 from bbigras/sssd
Browse files Browse the repository at this point in the history
nixos/sssd: fix the module
  • Loading branch information
AndersonTorres committed Aug 25, 2020
2 parents 213c004 + 5d36e00 commit fffabfa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/misc/sssd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ in {
mode = "0400";
};

system.nssModules = pkgs.sssd;
system.nssModules = [ pkgs.sssd ];
system.nssDatabases = {
group = [ "sss" ];
passwd = [ "sss" ];
Expand All @@ -92,4 +92,6 @@ in {
services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command";
services.openssh.authorizedKeysCommandUser = "nobody";
})];

meta.maintainers = with maintainers; [ bbigras ];
}
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ in
spike = handleTest ./spike.nix {};
sonarr = handleTest ./sonarr.nix {};
sslh = handleTest ./sslh.nix {};
sssd = handleTestOn ["x86_64-linux"] ./sssd.nix {};
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
sudo = handleTest ./sudo.nix {};
switchTest = handleTest ./switch-test.nix {};
Expand Down
17 changes: 17 additions & 0 deletions nixos/tests/sssd.nix
Original file line number Diff line number Diff line change
@@ -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")
'';
})

0 comments on commit fffabfa

Please sign in to comment.