Browse Source

Standardise network conf and fix slow boot

gluster
m1cr0man 2 years ago
parent
commit
36a49ae903
3 changed files with 14 additions and 13 deletions
  1. +1
    -2
      hosts/daedalus/configuration.nix
  2. +9
    -8
      hosts/m1vm/configuration.nix
  3. +4
    -3
      services/dns/default.nix

+ 1
- 2
hosts/daedalus/configuration.nix View File

@@ -21,11 +21,10 @@
networking = {
hostName = "daedalus";
hostId = "0f127302";
defaultGateway = "192.168.0.254";
interfaces.eno1.ipv4.addresses = [{
address = "192.168.0.50";
prefixLength = 24;
}];
defaultGateway = "192.168.0.254";
};
}

+ 9
- 8
hosts/m1vm/configuration.nix View File

@@ -21,14 +21,15 @@
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";

networking.hostName = "m1cr0man";
networking.hostId = "68b41103";
networking.interfaces.enp1s0.ipv4.addresses = [{
address = "192.168.0.135";
prefixLength = 24;
}];
networking.defaultGateway = "192.168.0.254";
networking.nameservers = ["192.168.0.4"];
networking = {
hostName = "m1cr0man";
hostId = "68b41103";
defaultGateway = "192.168.0.254";
interfaces.enp1s0.ipv4.addresses = [{
address = "192.168.0.135";
prefixLength = 24;
}];
};

users.users.lucasade = {
isNormalUser = true;


+ 4
- 3
services/dns/default.nix View File

@@ -34,9 +34,10 @@
};

# Fix issues where services can't resolve their targets
systemd.services.bind.requiredBy = [
"syslog.service"
];
systemd.services.nscd.requires = [ "network-online.target" ];
systemd.services.nscd.after = [ "network-online.target" ];
systemd.services.resolvconf.requires = [ "network-online.target" ];
systemd.services.resolvconf.after = [ "network-online.target" ];

networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];


Loading…
Cancel
Save