komashi: fix up cellular and misc config~
This commit is contained in:
parent
eeff107c20
commit
6934333e13
2 changed files with 24 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
deprekages,
|
deprekages,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -135,6 +136,28 @@
|
||||||
# Let anyone execute this.
|
# Let anyone execute this.
|
||||||
mode = "555";
|
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
|
||||||
|
'';
|
||||||
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,6 +213,7 @@ font_overrides = {
|
||||||
trailblazer = 11,
|
trailblazer = 11,
|
||||||
kanbaru = 12,
|
kanbaru = 12,
|
||||||
aigis = 12;
|
aigis = 12;
|
||||||
|
komashi = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
if font_overrides[hostname] ~= nil then
|
if font_overrides[hostname] ~= nil then
|
||||||
|
|
Loading…
Add table
Reference in a new issue