You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for publishing and contributing to this repo.
I'm on a Darwin system and use this flake with a high degree of success locally by cloning the repo and running .#build-switch. I've made several changes to fit my environment.
When I am starting with a new system, it would be great if I could, say, run nix build or nix run directly against the git repo where I keep a copy of this. Unfortunately, there seem to be a lot of problems with this approach:
When doing nix run git+ssh://[email protected]/<user>/<repo>#build-switch, it says the local directory doesn't contain a flake.nix
When doing nix build with a similar path, Nix complains packages.aarch64-darwin.build-switch doesn't exist (and when doing a fully qualified #apps.aarch64-darwin.build-switch, it complains it sees a set but not a derivation or path)
nix flake show works correctly and shows the apps
A clone works fine, though. Am I missing something obvious? I don't want to start from a new template - I want to run the whole enchilada. ChatGPT suggests this is because mkApp can't expose a file system view of its outputs, but that seems a bit bogus.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First, thanks for publishing and contributing to this repo.
I'm on a Darwin system and use this flake with a high degree of success locally by cloning the repo and running .#build-switch. I've made several changes to fit my environment.
When I am starting with a new system, it would be great if I could, say, run
nix build
ornix run
directly against the git repo where I keep a copy of this. Unfortunately, there seem to be a lot of problems with this approach:nix run git+ssh://[email protected]/<user>/<repo>#build-switch
, it says the local directory doesn't contain a flake.nixnix build
with a similar path, Nix complains packages.aarch64-darwin.build-switch doesn't exist (and when doing a fully qualified#apps.aarch64-darwin.build-switch
, it complains it sees a set but not a derivation or path)nix flake show
works correctly and shows the appsA clone works fine, though. Am I missing something obvious? I don't want to start from a new template - I want to run the whole enchilada. ChatGPT suggests this is because mkApp can't expose a file system view of its outputs, but that seems a bit bogus.
Any bright ideas?
Beta Was this translation helpful? Give feedback.
All reactions