test udev rule

This commit is contained in:
nyxerinys 2026-06-30 10:14:11 -05:00
parent f859848fe0
commit 565e54ec90
2 changed files with 8 additions and 2 deletions

View file

@ -23,6 +23,10 @@ in
boot.kernelModules = [ "fuse" ];
programs.fuse.userAllowOther = true;
services.udev.extraRules = ''
KERNEL=="fuse", MODE="0666", OWNER="root", GROUP="root"
'';
networking.firewall.allowedTCPPorts = [
6443 # k3s, api server
2379 # k3s, etcd clients
@ -69,7 +73,6 @@ in
images = import ./images args;
disable = [];
};
# systemd.services.k3s.serviceConfig.DeviceAllow = mkForce [ "/dev/fuse rwm" ];
systemd.services.k3s = {
restartTriggers = [
(builtins.toJSON config.services.k3s.manifests)

View file

@ -36,7 +36,10 @@
mountPath = "/dev/fuse";
}
];
securityContext.capabilities.add = ["SYS_ADMIN"];
securityContext = {
capabilities.add = ["SYS_ADMIN"];
# privileged = true;
};
}
];
volumes = [