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
How do I use disko command line? #58
Comments
I have this repo here which I used for testing https://github.com/Lassulus/flakes-testing |
If you have more questions, or ideas for a better interface I'm happy to help :) |
If I run: disko --flake github:Lassulus/flakes-testing#fnord it works. But if I try to run: git clone git@github.com:Lassulus/flakes-testing.git
cd flakes-testing
disko --flake .#fnord It does not work with error:
|
@guilhermehas I'm using "." with dry-run to work locally and inspect the script. |
Thanks for the suggestion. It worked. |
I basically copied the flake eval code from nixos-install. if "." is something we want to support I can add that |
@Lassulus I think it would be useful to support, especially when the flake is private and you just move the directory of the repo around instead of letting nix fetch it. The |
can you add a new issue? I will implement it probably next week. maybe this week if I can find some time |
This command is not working anymore: disko -m create --dry-run --flake "path:$(pwd)#fnord" I received the error:
I don't know if I am doing anything different or if the code is now broken. |
do you have my flakes-testing repo cloned? I moved stuff around a bit to test a new way to declare the partiton script. otherwise, I don't think I changed any of the flakes logic in disko in the last couple of days, but I could be mistaken |
Your new commit is broken in flakes-testing. |
Can you give an example? Currently I'm unable to get it working :( For me it doesn't seem to work
|
I am with files:
flake.nix
configuration.nix
When I try to use
disko -f #nixosConfiguration
, I got an error:The text was updated successfully, but these errors were encountered: