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

Question: How to use systemd.service ? #239

Open
usmcamp0811 opened this issue Jun 17, 2024 · 3 comments
Open

Question: How to use systemd.service ? #239

usmcamp0811 opened this issue Jun 17, 2024 · 3 comments
Labels
question Further information is requested

Comments

@usmcamp0811
Copy link

Has anyone thought of a good way to share the same code that creates a systemd.service in a NixOS system configuration with a service in a flake? I want to have a NixOS system configuration with many services running across all the systems I manage. Additionally, I want to create a process-compose package in my system flake that can set up a development environment with the exact same services.

One idea I had was to rework my services into writeShellApplication scripts that get executed by the systemd.service. However, this seems laborious and there might be a better way to achieve this.

@shivaraj-bh
Copy link
Member

One idea is to export homeModules with systemd and launchd configurations and these can be imported and activated using home-manager in your configuration.

@srid
Copy link
Member

srid commented Jul 3, 2024

Relevant? NixOS/nixpkgs#267111

cc @roberth

@srid srid added the question Further information is requested label Jul 9, 2024
@srid
Copy link
Member

srid commented Sep 23, 2024

Idea: work on this at NixCon with ideas from other people.

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

No branches or pull requests

3 participants