Giter Site home page Giter Site logo

Comments (16)

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

would you recommend migrating ... is it worth it?

I'd say it's worth learning Nix for sure. I use both Nix and brew currently but most of the packages I install with Nix declaratively.

I've found the documentation very hard to understand

You're not alone 😅 I haven't finished the entire documentation myself but I would recommend joining #nixos group on Freenode (it's very active).

do you have any tips for someone on a Mac to help them get started/install Nix/install packages using Nix?

I have an article I plan to release hopefully soon that targets that (Introduction to Nix on macOS).

from ama.

jletey avatar jletey commented on May 7, 2024

I'd say it's worth learning Nix for sure. I use both Nix and brew currently but most of the packages I install with Nix declaratively.

I just installed Nix to my system. What's would you say is next for getting started? Could you explain to me why nix-darwin or home-manager is needed (from your dotfiles)?

I have an article I plan to release hopefully soon that targets that (Introduction to Nix on macOS).

Great! Looking forward to it!

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

nix-darwin

Lets me specify in Nix my macOS configuration (packages to install + other stuff).

I don't use home-manager currently.

from ama.

jletey avatar jletey commented on May 7, 2024

Lets me specify in Nix my macOS configuration (packages to install + other stuff).

I see ... and how exactly is this different from simply just installing packages via Nix

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

how exactly is this different from simply just installing packages via Nix

With brew you do brew install <package>.

In nix you can do the same with nix-env -f '<nixpkgs>' -iA <package>

But alternatively you can write the state you want your macOS to be in (packages installed, config) in a .nix file(s), in my case it's one darwin.nix file.

Then you apply the configuration on the system. With darwin-rebuild switch in nix-darwin case. And you have your macOS in the state defined by nix. Nix can do a lot more though, I am still learning.

from ama.

jletey avatar jletey commented on May 7, 2024

Wow ... that's extremely useful ... I think I'll give Nix a try ... I'll slowly start transitioning all of my configurations over to Nix

One last question:

In nix you can do the same with nix-env -f '<nixpkgs>' -iA <package>

With nix-darwin, do you still run the above command to install packages, or do you run something else?

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

With nix-darwin, do you still run the above command to install packages

You can run this command without nix-darwin. This is 'install a package' command provided by Nix.

from ama.

jletey avatar jletey commented on May 7, 2024

I see! Also, do you have your nix configurations aliased? Or how do you set your nix configuration files to inside your dotfiles?

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

do you have your nix configurations aliased

2019-02-25 at 17 31

I have the file + a shell always open so I can edit the file and run darwin-rebuild switch in my right split.

from ama.

jletey avatar jletey commented on May 7, 2024

Got it ... but I was asking exactly how you tell nix-darwin that your configuration is at ~/dotfiles/nix/darwin.nix ... cause it told me that my configuration is at .nixpkgs/darwin-configuration.nix

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

I don't remember the command I ran for that. I asked in #nix-darwin Freenode group. Should have documented it. 😞

from ama.

jletey avatar jletey commented on May 7, 2024

Bummer ... anyways, thanks for the help! Also, my iTerm looks different than yours, do you mind posting your com.googlecode.iterm2.plist (you can tell iTerm where to save the file in preferences)

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

https://transfer.sh/OuLKE/com.googlecode.iterm2.plist

from ama.

jletey avatar jletey commented on May 7, 2024

Thanks!

from ama.

nikitavoloboev avatar nikitavoloboev commented on May 7, 2024

@johnletey Was just released https://www.softinio.com/post/moving-from-homebrew-to-nix-package-manager/ :)

from ama.

jletey avatar jletey commented on May 7, 2024

@nikitavoloboev Thanks so much ... reading now

from ama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.