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

System wide default sources? #389

Open
lnanctx opened this issue Nov 10, 2023 · 2 comments
Open

System wide default sources? #389

lnanctx opened this issue Nov 10, 2023 · 2 comments

Comments

@lnanctx
Copy link

lnanctx commented Nov 10, 2023

It would be kinda handy if hermit allowed you to specify system-wide default sources.

For example:

$ cat ~/.config/hermit/hermit.hcl
sources = ["https://github.com/cashapp/hermit-packages.git", "https://github.com/lnanctx/home-packages"]
$

At the moment, every time I hermit init I have to add my sources in..

@alecthomas
Copy link
Collaborator

I think adding this is a default set of sources to be used by hermit init --sources=<x> seems reasonable.

@alecthomas
Copy link
Collaborator

An additional option would be adding an envar to the --sources flag, so you could just put something like this in your .bashrc:

export HERMIT_INIT_SOURCES='https://github.com/cashapp/hermit-packages.git,https://github.com/lnanctx/home-packages'

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

2 participants