summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-01-30 15:28:08 -0500
committerKjetil Orbekk <kj@orbekk.com>2024-01-30 15:28:08 -0500
commite98ab785e43e1fc94dc875bf74a19fc814b4f8da (patch)
tree9ef75de022cac5d688b56554e1a7bac9f22ebd03
parent578ed3e90153271a29202261ba0f5564aaa98648 (diff)
dragon
-rw-r--r--modules/router.nix32
1 files changed, 17 insertions, 15 deletions
diff --git a/modules/router.nix b/modules/router.nix
index b0ef7fa..ae534d3 100644
--- a/modules/router.nix
+++ b/modules/router.nix
@@ -106,21 +106,22 @@ let
}];
systemd.services.he0-netdev.after = ["kjlan-netdev.service"];
- systemd.timers.fix-proc-sys = {
- wantedBy = ["multi-user.target"];
- timerConfig = {
- Persistent = true;
- OnBootSec = "1m";
- OnUnitActiveSec = "15m";
- };
- };
- systemd.services.fix-proc-sys = {
- description = "Remount /proc/sys as rw";
- wantedBy = ["multi-user.target"];
- script = ''
- /run/wrappers/bin/mount -o remount,rw /proc/sys
- '';
- };
+ # Fixed with the VFS environment variable instead.
+ # systemd.timers.fix-proc-sys = {
+ # wantedBy = ["multi-user.target"];
+ # timerConfig = {
+ # Persistent = true;
+ # OnBootSec = "1m";
+ # OnUnitActiveSec = "15m";
+ # };
+ # };
+ # systemd.services.fix-proc-sys = {
+ # description = "Remount /proc/sys as rw";
+ # wantedBy = ["multi-user.target"];
+ # script = ''
+ # /run/wrappers/bin/mount -o remount,rw /proc/sys
+ # '';
+ # };
networking.iproute2.enable = true;
networking.iproute2.rttablesExtraConfig = ''
@@ -347,6 +348,7 @@ in {
after = ["router-netns.service"];
requires = ["router-netns.service"];
wantedBy = ["network.target"];
+ environment."SYSTEMD_NSPAWN_API_VFS_WRITABLE" = "network";
};
systemd.services.dhcpcd.partOf = ["container@router.service"];