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.

34 lines
771 B

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. #(import "${home-manager}/nixos")
  8. ];
  9. users.users =
  10. let
  11. server_user =
  12. name: passwd: {
  13. isNormalUser = true;
  14. home = "/server/current/${name}";
  15. groups = [ "current" ];
  16. shell = pkgs.bash;
  17. password = passwd;
  18. };
  19. server_manager =
  20. name: passwd: {
  21. isNormalUser = true;
  22. home = "/server/current/${name}";
  23. groups = [ "current" "docker" "wheel" ];
  24. shell = pkgs.bash;
  25. password = passwd;
  26. };
  27. in
  28. {
  29. owner = server_manager "junikim" "1234";
  30. a = server_user "a" "1234";
  31. b = server_user "b" "1234";
  32. }
  33. }