Nix journey part 0: Learning and reference materials
tinkering.xyz
Nix journey part 0: Learning and reference materials
1–10 of 79 posts
Re: Nix journey part 0: Learning and reference materials
#2Although, I really don't like Nix as a language. I really wish it would have used something like GNU Guile. Searching deep for nuggets of information isn't nearly as painful as the language itself. I might adapt to it in time, but still.
Re: Nix journey part 0: Learning and reference materials
#3Re: Nix journey part 0: Learning and reference materials
#4Author here if anyone has questions
Re: Nix journey part 0: Learning and reference materials
#5Author here if anyone has questions
Any good resources on how to use flakes? I'm currently experimenting with having home-manager work via a flake but I haven't come across any good HOWTOs on common operations. For example, I'd like to update the flake dependencies similar to how I used to use "nix-channel --update" to freshen the dependencies used by home-manager.
Re: Nix journey part 0: Learning and reference materials
#6Am I supposed to use it instead of Ansible and Terraform? Where does it fit exactly?
Re: Nix journey part 0: Learning and reference materials
#7My current objective is to make an easy and reproducible configuration + live image installer. I want to automate the whole process. As soon as I plug in the USB stick, my preferred defaults should do their work without user input. Although, I really don't like Nix as a language. I really wish it would have used something like GNU Guile. Searching deep for nuggets of information isn't nearly as painful as the languag…
Re: Nix journey part 0: Learning and reference materials
#8So, I don't quite grok nix. Am I supposed to use it instead of Ansible and Terraform? Where does it fit exactly?
If you love Haskell and wants to make everything that has to so with packages on your system more like Haskell, Nix's got your back.
Re: Nix journey part 0: Learning and reference materials
#9So, I don't quite grok nix. Am I supposed to use it instead of Ansible and Terraform? Where does it fit exactly?
It can be a way to declaratively configure a system similar to ansible.
It can be a way to isolate runtimes (e.g. ruby v2.8 and ruby v3.0) in different projects similar to rbenv / virtualenv.
It can be a way to define an application in a self-contained way so that the target platform needn't have needed software installed beforehand similar to docker.
It can be a way to install packages/software to your system in a well-defined way similar to many package managers.
Re: Nix journey part 0: Learning and reference materials
#10Author here if anyone has questions
Any good resources on how to use flakes? I'm currently experimenting with having home-manager work via a flake but I haven't come across any good HOWTOs on common operations. For example, I'd like to update the flake dependencies similar to how I used to use "nix-channel --update" to freshen the dependencies used by home-manager.
[1] - https://gist.github.com/J-Swift/a4dad59843f1a1f512a72308031b...