nix-dev-home icon indicating copy to clipboard operation
nix-dev-home copied to clipboard

Automated install

Open srid opened this issue 2 years ago • 3 comments

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 .zshrc etc 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.nix https://github.com/juspay/nix-dev-home/blob/5c8f1aa430824d160e6849a311d6aa9cb8fb0f66/flake.nix#L29
    • Prompt user to set git meta (otherwise #37)
  • Run nix run
  • ~~Run nix-index to 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)

srid avatar Feb 08 '24 09:02 srid

  • automatically parse alias, exports and add them to terminal.nix?

shivaraj-bh avatar Feb 08 '24 10:02 shivaraj-bh

Yea we can, though it won't cover all cases, like bash functions, viz.:

image

srid avatar Feb 08 '24 10:02 srid

I think we can do this as a flake app in this repo.

nix run github:juspay/nix-dev-home#install

srid avatar Mar 07 '24 13:03 srid

We shall do this as part of https://omnix.page/om/init.html

image

srid avatar Aug 27 '24 20:08 srid

We keep hitting image

Not sure how to automate this.

srid avatar Aug 28 '24 15:08 srid

At this point, om init's --non-interactive mode pretty much solves this.

Also see https://github.com/juspay/nixone

srid avatar Oct 05 '24 01:10 srid