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

123456789101112131415161718192021222324252627282930313233343536373839
  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" ];
  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. services.dhcpd4 = {
  24. enable = true;
  25. interfaces = [ "eth0" ];
  26. extraConfig = builtins.readFile ../../../secrets/hosts/dhcp/config;
  27. };
  28. # This value determines the NixOS release with which your system is to be
  29. # compatible, in order to avoid breaking some software such as database
  30. # servers. You should change this only after NixOS release notes say you
  31. # should.
  32. system.stateVersion = "18.09"; # Did you read the comment?
  33. }