NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
716 B

1 year ago
1 year ago
1 year ago
1 year ago
  1. { lib, config, ... }:
  2. with lib;
  3. let
  4. baseDN = concatMapStringsSep ","
  5. (part: "dc=${part}")
  6. (splitString "." config.networking.domain);
  7. in
  8. {
  9. users.mutableUsers = false;
  10. users.users."root" = {
  11. hashedPassword = "$y$j9T$tz8ojZ2gVOQ5AUp6GMhoj.$mAeE0eTGGsKNGddC7ebk/zFr5IMDyIpOpMP/6o.GI6D";
  12. openssh.authorizedKeys.keys = [
  13. "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK2nkarN0+uSuP5sGwDCb9KRu+FCjO/+da4VypGanPUZ fooker@k-2so"
  14. ];
  15. };
  16. users.ldap = {
  17. enable = true;
  18. server = "ldap://manager.${config.networking.domain}/";
  19. base = baseDN;
  20. daemon.enable = true;
  21. };
  22. users.users."fooker" = {
  23. isNormalUser = true;
  24. group = "cluster";
  25. password = "asdasd123";
  26. };
  27. }