try cdi
This commit is contained in:
parent
7001c58d39
commit
7a4fe282de
4 changed files with 42 additions and 21 deletions
|
|
@ -22,6 +22,25 @@ in
|
|||
|
||||
boot.kernelModules = [ "fuse" ];
|
||||
programs.fuse.userAllowOther = true;
|
||||
environment.etc."cdi/fuse.json".text = builtins.toJSON {
|
||||
cdiVersion = "1.1.0";
|
||||
kind = "cdi.nyxerinys.dev/fuse";
|
||||
devices = [
|
||||
{
|
||||
name = "rw";
|
||||
containerEdits = {
|
||||
deviceNodes = [
|
||||
{
|
||||
path = "/dev/fuse";
|
||||
type = "c";
|
||||
fileMode = 438;
|
||||
permissions = "rw";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
6443 # k3s, api server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue