Init infrastructure
Benjamin, I hate you. Signed-off-by: Ryan Lahfa <federez-infra@lahfa.xyz>
This commit is contained in:
commit
8acdce99df
23 changed files with 602 additions and 0 deletions
28
profiles/sysadmin.nix
Normal file
28
profiles/sysadmin.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ ... }: {
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
../pubkeys/raito.keys
|
||||
];
|
||||
|
||||
users.ldap.daemon = {
|
||||
enable = false;
|
||||
extraConfig = ''
|
||||
# The location at which the LDAP server(s) should be reachable.
|
||||
uri ldaps://ldap.federez.net
|
||||
uri ldaps://ldap-ro.federez.net
|
||||
|
||||
# The search base that will be used for all queries.
|
||||
base dc=federez,dc=net
|
||||
|
||||
base passwd cn=Utilisateurs,dc=federez,dc=net
|
||||
base shadow cn=Utilisateurs,dc=federez,dc=net
|
||||
base group ou=posix,ou=groups,dc=federez,dc=net
|
||||
|
||||
# The LDAP protocol version to use.
|
||||
ldap_version 3
|
||||
|
||||
# The DN to bind with for normal lookups.
|
||||
binddn cn=nssauth,ou=service-users,dc=federez,dc=net
|
||||
bindpw ********TOP-SECRET-PASSWORD-THAT-MUST-BE-CHANGED-FOR-A-VALID-ONE********
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue