Merge branch 'development' of git.bitlab21.com:sam/nixos into development
This commit is contained in:
commit
7ab4607b43
2 changed files with 8 additions and 13 deletions
|
@ -20,8 +20,11 @@
|
||||||
PUID = "1000";
|
PUID = "1000";
|
||||||
PGID = "1000";
|
PGID = "1000";
|
||||||
DOCKER_MODS = "linuxserver/mods:jellyfin-opencl-intel";
|
DOCKER_MODS = "linuxserver/mods:jellyfin-opencl-intel";
|
||||||
|
NVIDIA_VISIBLE_DEVICES = "all";
|
||||||
};
|
};
|
||||||
extraOptions = ["--gpus=all"];
|
extraOptions = [
|
||||||
|
"--device=nvidia.com/gpu=all"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,6 +53,10 @@ in {
|
||||||
node = "/dev/nvidiactl";
|
node = "/dev/nvidiactl";
|
||||||
modifier = "rwm";
|
modifier = "rwm";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
node = "/dev/nvidia-uvm";
|
||||||
|
modifier = "rwm";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
node = "/dev/fuse";
|
node = "/dev/fuse";
|
||||||
modifier = "rwm";
|
modifier = "rwm";
|
||||||
|
@ -204,18 +208,6 @@ in {
|
||||||
|
|
||||||
networking.firewall.interfaces."podman+".allowedUDPPorts = [53];
|
networking.firewall.interfaces."podman+".allowedUDPPorts = [53];
|
||||||
|
|
||||||
systemd.services.podman-autostart = {
|
|
||||||
enable = true;
|
|
||||||
after = ["podman.service"];
|
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
description = "Automatically start containers with --restart=always tag";
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "idle";
|
|
||||||
ExecStartPre = ''${pkgs.coreutils}/bin/sleep 1'';
|
|
||||||
ExecStart = ''/run/current-system/sw/bin/podman start --all --filter restart-policy=always'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
exporters = {
|
exporters = {
|
||||||
node = {
|
node = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue