diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2020-08-25 16:59:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 16:59:11 -0300 |
commit | fffabfaefd2955647c4c15a0ee9913f1834d4177 (patch) | |
tree | f46b679d49852c3a3f9bf9ddfab96aa38a8c464d /nixos | |
parent | 213c004335b40042723ac992a56f12dbcb5f09e7 (diff) | |
parent | 5d36e00b7df86c6675ff3e81349c6badf5f0a0c1 (diff) |
Merge pull request #96179 from bbigras/sssd
nixos/sssd: fix the module
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/sssd.nix | 4 | ||||
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/sssd.nix | 17 |
3 files changed, 21 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/sssd.nix b/nixos/modules/services/misc/sssd.nix index 3da99a3b38c1b..386281e2b7cca 100644 --- a/nixos/modules/services/misc/sssd.nix +++ b/nixos/modules/services/misc/sssd.nix @@ -69,7 +69,7 @@ in { mode = "0400"; }; - system.nssModules = pkgs.sssd; + system.nssModules = [ pkgs.sssd ]; system.nssDatabases = { group = [ "sss" ]; passwd = [ "sss" ]; @@ -92,4 +92,6 @@ in { services.openssh.authorizedKeysCommand = "/etc/ssh/authorized_keys_command"; services.openssh.authorizedKeysCommandUser = "nobody"; })]; + + meta.maintainers = with maintainers; [ bbigras ]; } diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7b8e1b2b56dee..66fa435da7190 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -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 {}; diff --git a/nixos/tests/sssd.nix b/nixos/tests/sssd.nix new file mode 100644 index 0000000000000..4c6ca86c74c8f --- /dev/null +++ b/nixos/tests/sssd.nix @@ -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") + ''; +}) |