-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Private Flakes #3991
Comments
You could probably use ssh+git://... There is also --override-input |
Unfortunately:
and
|
Sorry, wrong way around. use this: |
|
It's host/path |
Cool, that works. Is this documented anywhere? |
Indeed, that does work! A great workaround, at least until submodules can be kept in the flake without needing to add an input. Thanks @kloenk! |
In addition to the standard Git/Mercurial authentication mechanisms, you can also access GitHub repositories using the |
What about with branches/refs? With the |
@dhess You can use |
I got from google here and just wanted to leave a not that the setting got renamed. The new option is |
Yes, we've been using It is probably worth pointing out in the documentation that, in most cases, you want to set this in the user's personal |
What about a system with auto upgrade set to a private flake? Also, I found it confusing that access-tokens under a flake's nixConfig is accepted but not used. |
Could anyone help me with this? I got error when trying to run
and this is my {
# put some repo URLs.
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nyngwang-dotfiles = {
url = "git+ssh://git@github.com:nyngwang/dotfiles.git";
};
};
outputs = { self }: {
foo = "bar";
};
} |
See #3991 (comment). Specifically, the colon after GitHub is the problem. |
@cole-h Thank you! Now I got this error. How could I make it evaluate only the ✘:1 ~/.config/nvim % nix eval . 11:02:5
error: flake 'path:/Users/ningwang/.config/nvim' does not provide attribute 'pack
es.aarch64-darwin.default' or 'defaultPackage.aarch64-darwin' |
By using |
@cole-h Lol, I did try (without the double quotes) it but got an error: zsh: no matches found: .#foo Now with double quotes it works! ✘:1 ~/.config/nvim % nix eval ".#foo" 11:06:36
"bar" |
Is your feature request related to a problem? Please describe.
I would like to be able to separate my system configuration (which I broadly am willing to show people) with the secrets that have to go into it (which I am not: hashed passwords; lat/long for redshift in home-manager, timezone, etc all broadly reveal my location).
Describe the solution you'd like
Some method of providing credentials (e.g., ssh keys) so that I can fetch the private flakes.
Describe alternatives you've considered
Importing via relative paths is not currently possible (#3978). If it was, I would probably use a git submodule.
The text was updated successfully, but these errors were encountered: