When using sddm, the service gets started as the sddm user when
the login screen appears, then is started again as your user after login
while the other is potentially still running. This causes the server
to exit with an 'Address already in use' error in the log.
Add a new `services.wivrn.steam.enable` option to let the user enable or
disable Steam support. This option is enabled by default to not break
existing setups.
Signed-off-by: David Wronek <david.wronek@mainlining.org>
This option shouldn't exist for WiVRn as it manages the active runtime itself.
It also causes apps that attempt to initialise OpenXR while WiVRn isn't running to hang.
The combination of creating an environment file in ExecStartPre= and
reading it in EnvironmentFile= works, but requires relaxing the existence
check on the environment file.
Frigate exposes process metrics using the psutil library and previously
saw all system processes. Reducing the scope to the unit cgroup mimics
the effects upstream gets via its OCI container usage.
As of systemd 258 adb and fastboot connections are handled by a built-in
uaccess rule, so a dedicated package with hardcoded ID-based udev rules
is no longer needed.
Drop the android-udev-rules package and related mentions of the adbusers
group, which is also no longer used.
In 0.16.0 frigate added a config option to pass an ffmpeg build for the
ffmpeg and ffprobe executables.
Previously we unconditionally patched in ffmpeg-headless, which has now
been changed to use the `ffmpeg.path` provided build, so that we don't
bloat the closure with multiple ffmpegs or don't require overriding the
package to select another version.
In contrast to the upstream configuration we only accept packages and not
the "default" string, because that would have complicated the logic
needlessly.
Upstream stores the model cache in the config directory, which is
unnecessarily messy. The cache directory is still the correct place for
these, since they can be pruned and redownloaded, we just don't want it
to happen on every restart.
Fixes: #427714
In 0.15.1 frigate has a logic error that makes it not ensure the model
cache dir exists before using it.
A workaround has been committed for newer versions, so we can drop this
on the next release.
Fixes: #402813
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
Frigate wants to connect on 127.0.0.1:5000 for unauthenticated requests
by checking the request port. This adress is hardcoded in the source.
See https://github.com/NixOS/nixpkgs/issues/370349 for more details