Automated install
Instead of pairing with folks to do manual setup of nix-dev-home on a computer with Nix installed, it'd be great to have an automated script that works like DetSys nix-installer.
It should do:
- Move user's
.zshrcetc out of the way. Offer a prompt to do this. - Fill in the template (cf. https://github.com/flake-parts/templates/issues/2)
- Set username in
flake.nixhttps://github.com/juspay/nix-dev-home/blob/5c8f1aa430824d160e6849a311d6aa9cb8fb0f66/flake.nix#L29 - Prompt user to set git meta (otherwise #37)
- Set username in
- Run
nix run - ~~Run
nix-indexto create the index for first time.~~ (already automated)
Stretch:
- "Use template" via Github API to create the remote repo
- nix-health
- Offer to resolve max-jobs/trusted-users automatically (requires Temp Admin Access)
- automatically parse
alias,exportsand add them to terminal.nix?
Yea we can, though it won't cover all cases, like bash functions, viz.:
I think we can do this as a flake app in this repo.
nix run github:juspay/nix-dev-home#install
We shall do this as part of https://omnix.page/om/init.html
We keep hitting
Not sure how to automate this.
At this point, om init's --non-interactive mode pretty much solves this.
Also see https://github.com/juspay/nixone