Filter out locally defined users and groups
This commit is contained in:
parent
4e08366901
commit
7d4ee43283
@ -85,10 +85,14 @@ in
|
|||||||
config_file_version = 2
|
config_file_version = 2
|
||||||
services = nss, pam, ssh
|
services = nss, pam, ssh
|
||||||
|
|
||||||
|
[nss]
|
||||||
|
filter_users = ${concatStringsSep "," (lib.attrNames config.users.users)}
|
||||||
|
filter_groups = ${concatStringsSep "," (lib.attrNames config.users.groups)}
|
||||||
|
|
||||||
[domain/${domain}]
|
[domain/${domain}]
|
||||||
enumerate = False
|
enumerate = False
|
||||||
ad_domain = ${domain}
|
ad_domain = ${domain}
|
||||||
krb5_realm = ${domainUpper}
|
krb5_realm = ${domainUpper}H
|
||||||
id_provider = ad
|
id_provider = ad
|
||||||
auth_provider = ad
|
auth_provider = ad
|
||||||
access_provider = ad
|
access_provider = ad
|
||||||
@ -121,6 +125,7 @@ in
|
|||||||
{
|
{
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
%${admin_group} ALL=(ALL) SETENV: ALL
|
%${admin_group} ALL=(ALL) SETENV: ALL
|
||||||
|
%${domainUpper}${admin_group} ALL=(ALL) SETENV: ALL
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -129,6 +134,7 @@ in
|
|||||||
security.pam.services.sshd.makeHomeDir = true;
|
security.pam.services.sshd.makeHomeDir = true;
|
||||||
environment.etc.profile.text =
|
environment.etc.profile.text =
|
||||||
let
|
let
|
||||||
|
# TODO: Activate configuration based on AD group
|
||||||
homeConfiguration = inputs.home-manager.lib.homeManagerConfiguration {
|
homeConfiguration = inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user