Personal Nix setup

Update chrony settings

Changed files
+6 -5
modules
+1 -1
modules/router/nftables.nix
···
};
capturePorts = mkOption {
-
default = [ 53 123 ];
+
default = [ 53 ];
description = "Ports to capture and redirect to router";
type = types.listOf types.int;
};
+5 -4
modules/router/timeserver.nix
···
let
cfg = config.modules.router;
-
intern = cfg.interfaces.internal;
-
bindDevices =
strings.concatStringsSep "\n"
(builtins.map (ifname: "binddevice ${ifname}")
···
};
config = mkIf cfg.timeserver.enable {
-
networking.timeServers = [ "time.cloudflare.com" ];
+
networking.timeServers = [
+
"time.cloudflare.com"
+
"time.google.com"
+
];
services.chrony = {
enable = true;
enableNTS = true;
extraConfig = ''
-
allow ${intern.cidr}
+
allow all
${bindDevices}
'';
};