komashi: fix up cellular and misc config~

This commit is contained in:
Kate 2025-01-20 12:22:05 +01:00
parent eeff107c20
commit 6934333e13
2 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,7 @@
{
pkgs,
deprekages,
config,
...
}:
{
@ -135,6 +136,28 @@
# Let anyone execute this.
mode = "555";
};
# Work properly with KPN's 4-over-6 IP-wonk.
services.clatd = {
enable = true;
settings = {
ip6tables-enable = true;
v4-conncheck-delay = 1;
};
};
networking.networkmanager.dispatcherScripts = [{
source = pkgs.writeShellScript "magic" ''
if [[ "$DEVICE_IFACE" == wwan* ]]; then
if [[ "$NM_DISPATCHER_ACTION" == "up" ]]; then
printf '[Service]\nExecStart=\nExecStart=${config.systemd.services.clatd.serviceConfig.ExecStart} dns64-servers=%s' "$(printf "%s" "$IP6_NAMESERVERS" | ${pkgs.coreutils}/bin/tr ' ' ',')" | ${pkgs.systemd}/bin/systemctl edit --stdin clatd.service --runtime
${pkgs.systemd}/bin/systemctl restart clatd
fi
if [[ "$NM_DISPATCHER_ACTION" == "down" ]]; then
${pkgs.systemd}/bin/systemctl restart clatd
fi
fi
'';
}];
};
}

View file

@ -213,6 +213,7 @@ font_overrides = {
trailblazer = 11,
kanbaru = 12,
aigis = 12;
komashi = 12;
}
if font_overrides[hostname] ~= nil then