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

Template to add a new service #53

Open
shivaraj-bh opened this issue Sep 7, 2023 · 1 comment
Open

Template to add a new service #53

shivaraj-bh opened this issue Sep 7, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@shivaraj-bh
Copy link
Member

shivaraj-bh commented Sep 7, 2023

A just command that takes the service name as an argument and creates nix/<service-name>.nix and nix/<service-name>_test.nix with a hello-world service example.

  • Maybe also add the files in the respective lists of nix/default.nix and test/flake.nix?

  • Update README to add the service

  • Comments specifying to take inspiration from either the nixos module or devenv module if either of them already implement the service.

@srid
Copy link
Member

srid commented Sep 7, 2023

One idea: you could add a nix/dummy.nix (etc) and a just command that does a cp -r of it to ${name} along with some sd replacements

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

No branches or pull requests

2 participants