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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. { config, pkgs, lib, ... }:
  2. {
  3. imports =
  4. [ ../../../lib/lxc-container.nix
  5. ../../../lib/shared.nix
  6. ../../../lib/admins.nix
  7. ];
  8. networking.hostName = "dhcp";
  9. networking.defaultGateway = "172.22.99.1";
  10. networking.nameservers = [ "172.20.72.6" "172.20.72.10" ];
  11. networking.interfaces.eth0 = {
  12. ipv4.addresses = [ {
  13. address = "172.22.99.254";
  14. prefixLength = 24;
  15. } ];
  16. };
  17. # List packages installed in system profile. To search, run:
  18. # $ nix search wget
  19. environment.systemPackages = with pkgs; [
  20. vim
  21. ];
  22. # dhcp
  23. networking.firewall.allowedUDPPorts = [ 67 68 ];
  24. networking.useDHCP = false;
  25. services.dhcpd4 = {
  26. enable = true;
  27. interfaces = [ "eth0" ];
  28. extraConfig = builtins.readFile ../../../secrets/hosts/dhcp/config;
  29. };
  30. # This value determines the NixOS release with which your system is to be
  31. # compatible, in order to avoid breaking some software such as database
  32. # servers. You should change this only after NixOS release notes say you
  33. # should.
  34. system.stateVersion = "18.09"; # Did you read the comment?
  35. }