Remix.run Logo
loveparade 5 hours ago

Or just use nix with home manager. Battle tested, lots of built-in functionality, works perfectly. Author claims the learning curve for it is weeks, but I had my setup up and running in a 1-2 hours at most and have been super happy with it.

IshKebab 5 hours ago | parent [-]

This must be a different "just" from the just I'm used to!

Weeks sounds way more accurate than 1-2 hours.

loveparade 4 hours ago | parent | next [-]

Now with LLMs it's even easier. Writing nix code is hard, but reading it is straightforward because it's declarative, so you can easily review what an LLM produces. And it's not much code either, a simple home manager setup is maybe 100 lines total.

1. Install nix / determinate nix

2. Tell your favorite llm to set up https://github.com/nix-darwin/nix-darwin with home manager if you are on mac, or just home manager if you are on linux

3. Review the code and ask for clarifications

You'll have a set up in 20 minutes.

IshKebab 4 hours ago | parent [-]

Ah yeah I wouldn't count that as being a small learning curve because you haven't actually learnt anything.

Valid approach though I guess.

loveparade 35 minutes ago | parent [-]

I'd disagree. You're not learning anything if you close your eyes and tell your LLM "set up home manager" - but you'll learn a lot if you read the code it produces, ask clarifying questions, and actually try to understand what is happening. It's just a tool that helps you avoid doing tons of research manually by searching google, and helps you avoid dealing with ugly nix syntax.

anuramat 13 minutes ago | parent | prev [-]

this looks like weeks to you?

  { pkgs, ...}: {
    home.packages = with pkgs; [ neovim lazygit ];
  }