Skip to content
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

NixOS has no option to start service #317

Closed
2 tasks done
rootBrz opened this issue Apr 29, 2024 · 4 comments
Closed
2 tasks done

NixOS has no option to start service #317

rootBrz opened this issue Apr 29, 2024 · 4 comments

Comments

@rootBrz
Copy link

rootBrz commented Apr 29, 2024

Checklist

Bug description

There is no way to start systemd service on NixOS, as it should be done through config.
image

For example keyd:
image

System info

- LACT version: 0.5.4
- GPU model: RX 580 8GB
- Kernel version: 6.6.28 
- Distribution: NixOS Unstable
@rootBrz rootBrz changed the title NixOS no option to start service NixOS has no option to start service Apr 29, 2024
@ilya-zlobintsev
Copy link
Owner

You should report this to the nix package maintainer, it's not packaged here.

@Atemu
Copy link

Atemu commented May 12, 2024

Yes, please open an issue in Nixpkgs instead. This one can be closed.

I've written myself a custom module: https://github.com/Atemu/nixos-config/blob/2aedffdf2ec295a60c7b0f27074333d2418ad11c/modules/lact/module.nix that you can use in the mean time. I've been wanting to upstream that now that I tested it a little for myself.

@ilya-zlobintsev ilya-zlobintsev closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
@JaysFreaky
Copy link

I sent an email to the package maintainer informing them of this thread, so maybe it'll be fixed.
In the meantime, I've added this to my config to get it working:

systemd.services.lactd = {
after = [ "multi-user.target" ];
description = "AMDGPU Control Daemon";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = ''${pkgs.lact}/bin/lact daemon'';
Nice = "-10";
};
};

@Atemu
Copy link

Atemu commented May 14, 2024

Please just create a feature request on the Nixpkgs issue tracker. As a package maintainer myself, I'd also prefer a public discussion rather than an email.

The MVP to get the lact daemon to run are these lines:

https://github.com/Atemu/nixos-config/blob/2aedffdf2ec295a60c7b0f27074333d2418ad11c/modules/lact/module.nix#L35-L38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants