configurations of hq services
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.

configuration.nix 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. { config, pkgs, lib, modulesPath, ... }:
  2. {
  3. imports = [
  4. (modulesPath + "/profiles/minimal.nix")
  5. ../../../lib
  6. ../../../lib/lxc-container.nix
  7. ../../../lib/shared.nix
  8. ];
  9. c3d2 = {
  10. isInHq = true;
  11. hq.interface = "eth0";
  12. enableHail = false;
  13. };
  14. networking.hostName = "ledstripes";
  15. networking.useNetworkd = true;
  16. # Required for krops
  17. services.openssh.enable = true;
  18. environment.systemPackages = [ pkgs.git ];
  19. systemd.services.ledball =
  20. let pile = import ../../../lib/pkgs/pile.nix { inherit pkgs; };
  21. in {
  22. after = [ "network-online.target" ];
  23. wantedBy = [ "multi-user.target" ];
  24. serviceConfig = {
  25. ExecStart = "${pile.ledball}/bin/rows";
  26. Restart = "always";
  27. };
  28. };
  29. # This value determines the NixOS release with which your system is to be
  30. # compatible, in order to avoid breaking some software such as database
  31. # servers. You should change this only after NixOS release notes say you
  32. # should.
  33. system.stateVersion = "20.03"; # Did you read the comment?
  34. }