• 46 Posts
  • 1.62K Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle

  • I use nixos for dev all the time, personally I think it’s great

    What I would suggest however is to install the nix package manager on another distro, learn how it works that way and then switch when you’re comfortable only using nix

    Flakes are absolutely incredible for development and I think every project beyond scrappy scripts should use them.

    You can specify all your dependencies (compiler, libraries, cli tools, environment variables etc) in your nix flake, then run nix develop and it’ll make you an isolated shell with all that stuff

    (For example, I don’t have go, rust or dotnet installed but when I cd into one of my projects directors it installs them to a temporary shell and catches them until I clean up)

    The flake also generates a lock file which specifies every version of every dependency with a git rev and a hash, meaning if you check flake and lock into git, anyone else who clones that project and uses the flake gets the exact same system you were using


















  • Yeah to be fair I agree, I’ve been having an issue with suspend on my current laptop which I decided to just ignore in the end cause it was frustrating me so much

    Though installing other people’s random scripts and plugins is a good way to get an unstable broken system

    Nixos is great to still be able to fiddle while staying stable given you can just boot an earlier install if you fuck up, also throwaway dev shells with temporary installed packages. Might be worth giving it a go