hopefully final fix

This commit is contained in:
nyxerinys 2026-06-29 13:28:04 -05:00
parent 000e652e8f
commit 34f7a34231
3 changed files with 17 additions and 1 deletions

View file

@ -19,6 +19,9 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
boot.kernelModules = [ "fuse" ];
programs.fuse.userAllowOther = true;
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
6443 # k3s, api server 6443 # k3s, api server

View file

@ -18,6 +18,7 @@
securityContext = { securityContext = {
runAsUser = 1000; runAsUser = 1000;
runAsGroup = 1000; runAsGroup = 1000;
capabilities.add = ["SYS_ADMIN"];
}; };
containers = [ containers = [
{ {
@ -30,6 +31,18 @@
containerPort = 2222; containerPort = 2222;
} }
]; ];
volumeMounts = [
{
name = "fuse-device";
mountPath = "/dev/fuse";
}
];
}
];
volumes = [
{
name = "fuse-device";
hostpath.path = "/dev/fuse";
} }
]; ];
}; };

View file

@ -69,7 +69,7 @@ let
# MAIN SCRIPT # MAIN SCRIPT
echo "[ Creating ssh connection socket ]" echo "[ Creating ssh connection socket ]"
$SSHCMD -MfNx dev@$host $SSHCMD -MfNx dev@$Host
echo "[ Opening ssh reverse proxy ]" echo "[ Opening ssh reverse proxy ]"
PORT=$($SSHCMD -O forward -R 0:localhost:2222 null) PORT=$($SSHCMD -O forward -R 0:localhost:2222 null)