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

Add a “template mode” #95

Open
sellout opened this issue Oct 3, 2024 · 0 comments
Open

Add a “template mode” #95

sellout opened this issue Oct 3, 2024 · 0 comments

Comments

@sellout
Copy link
Owner

sellout commented Oct 3, 2024

I’ve done this manually in some cases, but what would be nice is to tell Project Manager that you want to effectively run it once, producing a set of files to commit without expecting Project Manager to be included at all.

project-manager switch --template
  • this is different from project.commit-by-default = true, because “template mode” would ignore any settings on individual files
  • this implies that no generated files would contain references to the Nix store

Stretch goals:

  • generate files containing the flake outputs that Project Manager makes available, so they can still be used even if Project Manager isn’t there
  • implement Restore non-flake support #16, since currently you would need Project Manager in your flake to generate the template, then remove it before committing
  • possibly implied by the above, make it possible to reference a project configuration outside of the working tree, so that nothing needs to be deleted after generating the template
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

1 participant