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.

33 lines
744 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. { pkgs, ... }:
  2. let
  3. home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
  4. in
  5. {
  6. imports = [
  7. ];
  8. users.users =
  9. let
  10. server_user =
  11. name: passwd: {
  12. isNormalUser = true;
  13. home = "/server/current/${name}";
  14. extraGroups = [ "current" ];
  15. shell = pkgs.bash;
  16. password = passwd;
  17. };
  18. server_manager =
  19. name: passwd: {
  20. isNormalUser = true;
  21. home = "/server/current/${name}";
  22. extraGroups = [ "current" "docker" "wheel" ];
  23. shell = pkgs.bash;
  24. password = passwd;
  25. };
  26. in
  27. {
  28. owner = server_manager "junikim" "1234";
  29. a = server_user "a" "1234";
  30. b = server_user "b" "1234";
  31. };
  32. }