-
Notifications
You must be signed in to change notification settings - Fork 203
data: add and install sysusers.d gamemode.conf #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add a trivial gamemode.conf file, which creates the gamemode group. v2: git add gamemode.conf (d'oh) Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
@afayaz-feral any input? |
@mdiluz are you still involved in gamemode, any comments? |
I am, I'll chase up with some contacts at Feral. Might be worth explaining why this is needed though. |
I can see the merit in having a gamemode group, thanks for adding this. |
Thanks everyone. To elaborate on the reason why I think this is a good idea: AFAICT gamemode manages sysfs entries, where most of the setters (cpu_gov, amdgpu dpm) require root permissions. Using root isn't particularly good, since it exposes much larger surface for misuse or abuse. To avoid that, we add a dedicated group, annotate respective entries and ultimately tighten the scope. |
On NixOS, system configuration is usually handled separately from packaging, and the package fails to build with this change: NixOS/nixpkgs#182511.
|
AFAICT the file must be installed in I don't know much about the working of NixOS, but it does sound alarming to *NOT use the default config provided by upstream. Nevertheless - feel free to add a meson toggle to disable it. There's systemd-user-unit-dir in there already. |
Nix in general supports shipping default configs provided from upstream, as long as the package installs to the The problem here is that I think this is because the Nix build of systemd uses |
Yes that was fairly obvious by the If the files are *not installed in that location, then the module will not work as expected. It sounds to me that if a feature (again sysusers or otherwise) is disabled, then the respective path should either be a) unset in the systemd.pc or b) pointing to special location that will not cause issues. Either way, as mentioned originally feel free to add meson toggle if that makes sense for NixOS. |
Add a trivial gamemode.conf file, which creates the gamemode group.