Seems like this distro is getting a lot of traction recently. Has anyone tried it? Is it any good?

4 points

Being using it for almost 2 years. Was very weird at the beginning because of the “declarative” approach they used. But once you get used to it… Its a life changer.

permalink
report
reply
2 points

Declarative? Could you explain?

permalink
report
parent
reply
4 points

Your whole system is defined in a file called configuration.nix. This file describes everything about your system: all packages installed, which Desktop Environment / Window Manager to use, and also configuration for almost everything (e.g. zsh or neovim). When “switching” (which is basically installing/updating the system), Nix looks at the configuration and changes your system according to what you’ve declared in the configuration.nix, installing or uninstalling packages for instance.

So, the state of your system is “declared” in a single file, which can be tracked in git or backed up wherever. If you have mulitple systems, you can also share parts of your config between them, which makes configuring and customizing stuff a lot easier.

There are a lot of other aspects, but thats the basic gist of it

permalink
report
parent
reply
0 points
*

Is it a big learning curve? Is this the emacs equivalent of OS configuration/installation?

edit: another question - Could I play around with it by installing in qemu and if I like that, take my configuration.nix from qemu and install it as my main OS?

permalink
report
parent
reply
3 points

That sounds really cool… so you could just take that file, do a clean install of nix, then put that file back and it’ll install all your old packages and stuff?

permalink
report
parent
reply
2 points
*

Oh my bad. Yeah you can configure almost anything in a declarative way on the /etc/nixos/configuration.nix file:

services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;

Or

services.xserver = {
  enable = true;
  display manager.gdm.enable = true;
};

You can define a lot more (programs, users) and then you build the config file to take effect. By default NixOS is immutable so you can’t change anything in the root partition and if there is something that broke you can rollback to a previous build!

permalink
report
parent
reply
1 point

That is very interesting! Thank’s mate!

permalink
report
parent
reply
1 point

I’ve played with it an a few occasions, and I like what they’re going for. However, I just couldn’t put it onto a production computer.

Right or wrong, I feel like I’d have to over-write a LOT of muscle-memory from using regular distros for the past 8 years to use it regularly. If I’d been working in dev-ops, I may feel differently.

permalink
report
reply
0 points

I feel like nix could be a good ‘project’ distro, but I would hesitate on installing it on my main computer until I was quite familiar with it and had a few months with it on another computer.

permalink
report
reply
1 point
*

I agree, but I’ve decided to play with it in qemu for a while. I’ve also been looking at Chimera and have that in a vm too. Currently I use Void, btw

permalink
report
parent
reply
1 point

I am both a fan of NixOS and The Linux Experiment, but I’m kind of surprised he liked it so much.

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.4K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments