formatting & test cuda support
This commit is contained in:
@@ -24,12 +24,18 @@ in {
|
||||
enable = true;
|
||||
alwaysKeepRunning = true;
|
||||
settings = {
|
||||
listen-address = "10.10.0.10"; # your LAN IP
|
||||
listen-address = "10.10.0.10"; # your LAN IP
|
||||
#interface = "enp89s0";
|
||||
bind-interfaces = true;
|
||||
address = [
|
||||
"/snowbelle.lan/10.10.0.10"
|
||||
"/.snowbelle.lan/10.10.0.10"
|
||||
"/lumiose.lan/10.10.0.11"
|
||||
"/.lumiose.lan/10.10.0.11"
|
||||
"/bebe.lan/10.10.0.1"
|
||||
];
|
||||
server = [ # upstream dns
|
||||
server = [
|
||||
# upstream dns
|
||||
"10.10.0.1"
|
||||
];
|
||||
};
|
||||
@@ -37,13 +43,11 @@ in {
|
||||
|
||||
systemd.services.dnsmasq.serviceConfig = {
|
||||
RestartSec = "5s";
|
||||
StartLimitIntervalSec = 60;
|
||||
StartLimitBurst = 10;
|
||||
};
|
||||
|
||||
# open firewall
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||
networking.firewall.allowedUDPPorts = [ cfg.port ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [cfg.port];
|
||||
networking.firewall.allowedUDPPorts = [cfg.port];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user