[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What does /g/ think of NixOs?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 28
Thread images: 2

File: nixos-logo-only-hires.png (88KB, 1183x1024px) Image search: [Google]
nixos-logo-only-hires.png
88KB, 1183x1024px
What does /g/ think of NixOs?
>>
It sounds really cool but I have not tried it.
>>
GuixSD is better.
>>
>>59790008

Guix is a testament to FSF's NIH syndrome.
>>
Switching to it from arch this coming week. Wish me luck /g/
>>
>>59791073
good luck anon
>>
The logo looks sick at least
>>
>>59791073
good luck anon
>>
>>59792239
yyyyyy
>>
>>59788653
The logo represents the user base very nicely.
>>
File: 1491644046.png (44KB, 860x447px) Image search: [Google]
1491644046.png
44KB, 860x447px
>>59788653
I've been using NixOS for around 2 weeks now, ask me anything.

I'm a CS student, so I mainly use my computer for programming and writing stuff in latex, and it has worked pretty well so far.

Until now, I was running Ubuntu (inb4 lel noob) but my friends peer-pressured me into switching to Arch for months. I was waiting for the right moment to make the switch (i.e. after my exams) as I didn't want my PC to be left in an unusable state if I fucked up. But then I learned about NixOS and decided it's superior to Arch.

In the meantime I had read all there is to read about installing Arch, having full-disk encryption, getting bluetooth, wifi and all that shit to work. This helped tremendously for installing NixOS.

It still took me forever to understand how NixOS really works. Most installation guides/tutorials just guide you through the basics, which are easy: partition your disk, run nixos-install, edit /etc/nixos/configuration.nix, run nixos-rebuild switch, and reboot. But then, the hard part begins. There are a lot of options that you can set in configuration.nix, and not that much documentation. You can find all available options (with their description) on the NixOS website, but there are just so much that you just have to guess. What I did is copy some stuff from configuration files I found online (lots of guys put it on their GitHub). And if you fuck up you can just reboot and select the previous configuration in the GRUB menu.

Anyway, I have much more to tell, if someone's interested I can talk about the good parts too.
>>
Does it use systemd?
>>
>>59793000
Interested if this isn't pasta
>>
>>59788653
What is special about NixOS?
>>
>>59793000
what about battery life?
I'm looking for a good distro for programming without shitty battery life.
I've tried debian and fedora, and they suck my laptop's battery faster than i can suck my gf's tits
>>
>>59793000
How does it compare to gentoo?
>>
>>59788653
Special snowflake
>>
Holy fuck, why would you run this on a desktop are you guys all seriously fucking retarded? When are you guys ever going to use reproducible configuration files for your single machine network.
>>
Looks interesting but It is Reserach OS not for use.
>>
>>59796141
Literally this. It's like people running puppy on modern thinkpads - because they think it makes them special.
>>
>>59796141
This. Desktop is not where NixOS shines. The fact that you can't even see a process name under htop behind a long hash string makes it a tad unwieldy.

Though I admit it was pretty neat being able to switch from one config to another and have that clean separation. (e.g. Restarting from GNOME to KDE without any GNOME stuff staying in your $path)
>>
>>59788653
Shit, just like any Linux distro
>>
>>59796998
What is it for, then? Servers?
>>
>>59793000
I'm back guys, sorry for the wait!
>>59794267

>>59795626
No complaints regarding battery life. It's about the same as what I had on Ubuntu, maybe even a tad better (Around 5-6 hours of light web browsing). Like on Arch, or Gentoo or all those DIY distros, you have to explicitly configure it to save your battery. I haven't done anything special except add "services.tlp.enable = true" in my configuration.nix. I'm sure I could do even more, but I won't bother.

>>59795678
I never used Gentoo (I tried once, and didn't even finish installing because compiling took hours and my old laptop was getting too hot). But from what I understand, the great thing about Gentoo are USE flags, that let you choose what features you want your software to be compiled with. And some like the fact that everything is compiled from source.

I'd say NixOS (and the Nix package manager in general) is even better. Let me explain. Every package in Nix is defined in the form of a "Nix expression" that define how to compile it (a bit like a PKGBUILD in Arch). But a Nix expression is a function that takes as parameters:
1. the package's dependencies
2. configuration options (à la USE flags)
And the output is your compiled and installed package.
3. implicit stuff, like the package's version, source code, ...
And the output is your compiled and installed package.

Where it becomes interesting, is that all the inputs of this functions are hashed to uniquely identify this particular configuration of the package, meaning that multiple versions can be installed simultaneously (and old versions are kept around to instantly roll back).

What's even greater, is that Nix calculates the hash before attempting to compile, and looks up the hash on the NixOS server to see if it can be downloaded in binary form. They have the "Hydra" system, basically a farm of servers that always compile the latest versions of the Nix expressions, and serving as a continuous integration service.

(more to come)
>>
>>59788653
>wow it's real hard trying to learn how to config all these packages
>let's solve it by creating additional layer of config that people have to learn all over again
>>
>>59797715
Take the Nix expression for polybar as an example:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/polybar/default.nix

On top, between the curly braces, are the inputs to the expression. Most of them are other packages (dependencies), but some are "USE flags", like i3Support or mpdSupport, that change how the package is built. These have default values (after the "?"), which is what you get if you don't explicitly set them otherwise (and what gets compiled by Hydra). But if you want MPD and i3 support, you'd add something like this in your NixOS config:

nixpkgs.config.packageOverrides = {
polybar = pkgs.polybar.override {
i3Support = true;
mpdSupport = true;
};
};


And then, the package will be compiled on your machine. Also, if any package depended on polybar, it would use this version instead of the default one. But if you wanted dependencies to use the default polybar instead, you could simply call your custom version something else, like "my-polybar" and the two versions wouldn't clash.

>>59796141
>>59796881
>>59796998
>>59797039
>>59796799
It's surprisingly good on desktops, for many reasons. I've explained some of them already, and I could give you even more, but I have to leave right now. If this thread is still alive when I'm back, I'll explain some more.
>>
>>59791073
>switching from meme to memest
good job fag
>>
>NixOS is DevOps friendly and has tools dedicated to deployment tasks.

topkek
Thread posts: 28
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.