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

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

View file

@ -18,6 +18,7 @@
securityContext = {
runAsUser = 1000;
runAsGroup = 1000;
capabilities.add = ["SYS_ADMIN"];
};
containers = [
{
@ -30,6 +31,18 @@
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
echo "[ Creating ssh connection socket ]"
$SSHCMD -MfNx dev@$host
$SSHCMD -MfNx dev@$Host
echo "[ Opening ssh reverse proxy ]"
PORT=$($SSHCMD -O forward -R 0:localhost:2222 null)