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
undervolt: service contains "unrecognized arguments" #64475
Comments
The error is coming from the binary, not NixOS - kindly provide the full error from I think I know what's happening - a backslash at the end of the line is causing Please show the generated service unit: Mine on 19.03 looks like this:
|
Here is the journalctl log
and the unit file itself:
|
Hm! Your one doesn't have the two spaces on the final line after the last |
OK, I rebuilt my system using
In any case, I think it would be better if the NixOS module didn't produce output like this. @VlivesRaw hopefully you can work around it by configuring |
First of all thanks for the help! |
The issue here is #63533. This was fixed upstream in systemd systemd/systemd#12890 and we've Pretty sure we updated systemd in nixpkgs to include that (#63784). |
Yes, this was included in the latest staging next PR (#64236) which was merged 8 hours ago.
|
@VlivesRaw If you need a quick patch #63777 should suffice until the channel advances. |
Been resolved for a while now I guess. |
Issue description
If you try to enable
undervolt
service it would fail withundervolt: error: unrecognized arguments: Restart=no
I solved the issue by removing
Restart="no"
andType="oneshot'
from undervolt.nix, but I still don't understand why it fails, since the syntax seems to be correct.Steps to reproduce
add
services.undervolt.enable = true;
to configuration.nixTechnical details
"x86_64-linux"
Linux 5.1.16, NixOS, 19.09pre184855.beff2f8d75e (Loris)
yes
yes
nix-env (Nix) 2.2.2
"nixos-19.09pre184855.beff2f8d75e, nixos-hardware"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: