diff --git a/system/services/pulse.nix b/system/services/pulse.nix new file mode 100644 index 00000000..d97e22a1 --- /dev/null +++ b/system/services/pulse.nix @@ -0,0 +1,46 @@ +{ + config, + lib, + pkgs, + ... +}: let + pulseVersion = "4.35.0"; +in { + virtualisation.oci-containers.containers = { + pulse = { + image = "rcourtman/pulse:${pulseVersion}"; + autoStart = true; + + login = { + # Uses DockerHub by default + # registry = ""; + + # DockerHub Credentials + username = "christoph.urlacher@protonmail.com"; + passwordFile = "${config.sops.secrets.docker-password.path}"; + }; + + dependsOn = []; + + ports = [ + # "7655:7655" + ]; + + volumes = [ + "pulse_data:/data" + ]; + + environment = { + PUID = "1000"; + PGID = "1000"; + TZ = "Europe/Berlin"; + }; + + extraOptions = [ + # "--privileged" + # "--device=nvidia.com/gpu=all" + "--net=behind-nginx" + ]; + }; + }; +} diff --git a/system/thinknix/default.nix b/system/thinknix/default.nix index eaa52b29..14264231 100644 --- a/system/thinknix/default.nix +++ b/system/thinknix/default.nix @@ -20,6 +20,7 @@ ../services/adguard.nix ../services/nginx-proxy-manager.nix ../services/portainer.nix + ../services/pulse.nix ../services/whats-up-docker.nix ];