this post was submitted on 16 Jun 2023
11 points (100.0% liked)

Linux

47366 readers
1483 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] doomkernel@sopuli.xyz 3 points 1 year ago (11 children)

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.

[–] JackOfAllTraits@lemmy.world 1 points 1 year ago (10 children)

Declarative? Could you explain?

[–] polite_cat@lemmy.world 5 points 1 year ago (7 children)

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

[–] Hikiru@lemmy.ml 2 points 1 year ago (2 children)

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?

[–] polite_cat@lemmy.world 3 points 1 year ago

Basically yes

you could also go so far as to wipe your root partition (except for some selected dirs) on every boot, although I don't do that myself: https://github.com/nix-community/impermanence

[–] Octorine@midwest.social 2 points 1 year ago

Not just your packages, but all your config as well.

Also, I believe updates are transactional, so if something goes wrong in the middle it can just abort and your system isn't left in an inconsistant state. And if an update breaks something you can easily roll back to a previous version.

load more comments (4 replies)
load more comments (6 replies)
load more comments (6 replies)