Fix time syncing
Can't believe I was ~5 seconds off on all my computers for this long x)
This commit is contained in:
parent
0ac79c3d0c
commit
8c45c1989c
|
@ -53,24 +53,38 @@ in
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
# wireless support via wpa_supplicant
|
# wireless support via wpa_supplicant
|
||||||
networking.wireless = {
|
networking = {
|
||||||
enable = true;
|
# Tell the time synchronisation service when we got/lost the connection
|
||||||
extraConfig = ''
|
dhcpcd.runHook = ''
|
||||||
country=NL
|
if $if_up; then
|
||||||
|
${config.services.chrony.package}/bin/chronyc online
|
||||||
|
elif $if_down; then
|
||||||
|
${config.services.chrony.package}/bin/chronyc offline
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
# Public wireless networks
|
|
||||||
networks = lib.genAttrs [
|
wireless = {
|
||||||
"EurostarTrainsWiFi"
|
enable = true;
|
||||||
"_SNCF gare-gratuit"
|
extraConfig = ''
|
||||||
"_SNCF_WIFI_INOUI"
|
country=NL
|
||||||
"Wifi in de trein"
|
'';
|
||||||
"WiFi in de trein"
|
# Public wireless networks
|
||||||
"_WIFI_LYRIA"
|
networks = lib.genAttrs [
|
||||||
"WIFIonICE"
|
"EurostarTrainsWiFi"
|
||||||
] (ssid: { });
|
"_SNCF gare-gratuit"
|
||||||
userControlled.enable = true; # Allow some control with wpa_cli
|
"_SNCF_WIFI_INOUI"
|
||||||
|
"Wifi in de trein"
|
||||||
|
"WiFi in de trein"
|
||||||
|
"_WIFI_LYRIA"
|
||||||
|
"WIFIonICE"
|
||||||
|
] (ssid: { });
|
||||||
|
userControlled.enable = true; # Allow some control with wpa_cli
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Wait until there's a connection to fetch time
|
||||||
services.chrony.serverOption = "offline";
|
services.chrony.serverOption = "offline";
|
||||||
|
|
||||||
systemd.services.wifi_apply = {
|
systemd.services.wifi_apply = {
|
||||||
after = [ "wpa_supplicant.service" ];
|
after = [ "wpa_supplicant.service" ];
|
||||||
wantedBy = [ "wpa_supplicant.service" ];
|
wantedBy = [ "wpa_supplicant.service" ];
|
||||||
|
|
Loading…
Reference in a new issue