NixOS deployment for LinuxLab
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.

46 lines
620 B

1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
  1. id:
  2. { lib, ... }:
  3. with lib;
  4. let
  5. client = (import ../clients.nix).${id};
  6. in
  7. {
  8. imports = [
  9. ./hardware.nix
  10. ./gpu.nix
  11. ./home.nix
  12. ./users.nix
  13. ./desktop.nix
  14. ./programs.nix
  15. ];
  16. deployment = {
  17. targetHost = "10.32.45.150";
  18. tags = [ "client" ];
  19. };
  20. _module.args = {
  21. inherit id client;
  22. };
  23. networking = {
  24. hostName = mkForce "client-${id}";
  25. useDHCP = mkForce true;
  26. };
  27. services.hardware.bolt.enable = true;
  28. security.rtkit.enable = true;
  29. services.avahi = {
  30. enable = true;
  31. nssmdns4 = true;
  32. nssmdns6 = true;
  33. };
  34. system.stateVersion = "24.05";
  35. }