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
redshift: Install systemd user unit files #54480
Conversation
c2aa0ab
to
4297e58
Compare
@@ -44,7 +45,7 @@ stdenv.mkDerivation rec { | |||
"--enable-drm=${if withDrm then "yes" else "no"}" | |||
"--enable-quartz=${if withQuartz then "yes" else "no"}" | |||
"--enable-corelocation=${if withCoreLocation then "yes" else "no"}" | |||
]; | |||
] ++ stdenv.lib.optional (stdenv.isLinux && useSystemd) "--with-systemduserunitdir=\${out}/lib/systemd/user"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
] ++ stdenv.lib.optional (stdenv.isLinux && useSystemd) "--with-systemduserunitdir=\${out}/lib/systemd/user"; | |
] ++ stdenv.lib.optional (stdenv.isLinux && useSystemd) "--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to make changes to our nixos module to include these.
Additonally do these differ from the one we make at
systemd.user.services.redshift = |
Just checked and we can't use these service files since we pass extra flags to the But I guess for other Linux distributions we should still have them installed. |
Oh, I didn't know about the redshift options on NixOS. I usually use these at the user level because I have two accounts, one of which uses redshift and the other doesn't. There's currently no way to specify that in NixOS, though, as far as I can tell. |
We can just override the |
Motivation for this change
redshift's systemd user units currently aren't installed. This installs them.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)