MatthewCroughan / nixinate

Another NixOS Deployment Tool - Nixinate your systems 🕶️
MIT License
240 stars 32 forks source link

Example run in README is incorrect #36

Open brianmcgee opened 1 year ago

brianmcgee commented 1 year ago

A minor issue but it took me a few mins to realise. The example run uses the command:

[root@myMachine:/etc/nixos]# nix run .#apps.nixinate.myMachine

The apps prefix before .#apps.nixinate... is not necessary. It should be:

[root@myMachine:/etc/nixos]# nix run .#nixinate.myMachine
MatthewCroughan commented 1 year ago

That can't be done because of https://github.com/MatthewCroughan/nixinate/issues/12, if it works you may be running a different (older) version of Nix. What is your nix --version?

brianmcgee commented 1 year ago

I'm running nix (Nix) 2.11.0

MatthewCroughan commented 1 year ago

@brianmcgee Have you got an example flake that you can give me that can reproduce this? If you have apps = nixinate.nixinate.x86_64-linux self in your flake, you should not be able to nix run .#nixinate.<machineName>

brianmcgee commented 1 year ago

@MatthewCroughan I'll pull something together over the weekend