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, ... }:
  2. {
  3. imports =
  4. [ ../../../lib/lxc-container.nix
  5. ../../../lib/shared.nix
  6. ];
  7. networking.hostName = "dhcp";
  8. networking.defaultGateway = "172.22.99.1";
  9. networking.nameservers = [ "172.20.72.6" "172.20.72.10" ];
  10. networking.interfaces.eth0 = {
  11. ipv4.addresses = [ {
  12. address = "172.22.99.254";
  13. prefixLength = 24;
  14. } ];
  15. };
  16. # List packages installed in system profile. To search, run:
  17. # $ nix search wget
  18. environment.systemPackages = with pkgs; [
  19. vim
  20. ];
  21. # dhcp
  22. networking.firewall.allowedUDPPorts = [ 67 68 ];
  23. networking.useDHCP = false;
  24. services.dhcpd4 = {
  25. enable = true;
  26. interfaces = [ "eth0" ];
  27. extraConfig = builtins.readFile ../../../secrets/hosts/dhcp/config;
  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 = "18.09"; # Did you read the comment?
  34. }