Nix general - lets be nice to our guix brothers edition

Why are you not yet using nix Jow Forums?

Discord: discord.gg/sAJNxGG
Why: nixos.org/nixos/nix-pills/why-you-should-give-it-a-try.html

Attached: 7273529A-6293-403C-AFCF-EDD6D2003E4E.jpg (499x550, 49K)

Other urls found in this thread:

nixos.org/nixos/nix-pills/index.html
github.com/tuhdo/emacs-c-ide-demo
tuhdo.github.io/c-ide.html
twitter.com/NSFWRedditGif

I am currently translating my arch setup into a nix file, those nix pills were insane. I am sold on not just nix , but nixos as a whole

Almost there, all is left is copying over my scripts for the bar and my dotfiles and isntalling the rest of the smaller but less important software such as compton and a some systay utils.
What i love about nix is when that's done all i'll have to do is just take these couple of config files and put them in my actual computer and it'll just install and ill have no downtime where my pc isn't fully functional.

Attached: 2019-06-16-111254_800x600_scrot.png (800x600, 629K)

looks awesome, what terminal editor are you using user-kun?

Attached: nix_pkgs.png (1052x1342, 862K)

Not user, but urxvt cucks use vim

lol thats default urxvt with a pywal made colorscheme, ive had issues with st on nix so im going to use urxvt for my nixos machine. Ill figure out its configs another time. Getting the system to work smoothly is my priority now

open your eyes nigger gook

I can't, my genetics and the bellcurve don't allow me to.

Trying it out today, any tips on getting started?

Why not just run guix?

Nix is a much more polished functional operating system with an easier to learn language and a wider ecosystem making nixos an interesting option, Guixsd is a great OS though c:

guix is a fork that is still young and not as polished, in the future it will probably be the biggest fsf approved distro. Absolute freedom is not for everyone and installing non free software on guix just defeats the purpose

difenitely read the nix pills first, they honestly make it all understandable and show why it's so good.
As an exercice try to replicate your setup if you're trying out nixos other than that nix pills offers great examples for the package manager itself

nixos.org/nixos/nix-pills/index.html

I use urxvt and emacs

> Since Nix derivations are immutable, upgrading a library like glibc means recompiling all applications, because the glibc path to the Nix store has been hardcoded.
So....gentoo?

I've never ran gentoo but in his work Eelco lists it as a source.

desu I'm not quite sure I'm seeing clearly what Nix is attempting to do. It sounds a lot like portage slots, but in some kind of funky distro-portable system?

Installed last week, comfy af.

i used to run gentoo, it's nowhere near the same thing. Emerge and portage are straight up shit in comparison. It's one of those things that you need to try to understand.
It does solve many of the problems portage tries to

Running it on my normiebook, no issues so far.

Attached: Screenshot_20190617_011220.png (2560x1440, 130K)

Thanks user

Use spacemacs.

> Emerge and portage are straight up shit in comparison.
I find that hard to believe, portage has been a fucking godsend after fighting with aptitude for so long.
>It's one of those things that you need to try to understand.
ehhh, maybe?
I get that sometimes you just have to do it and see, but I'm not seeing how this is any different than portage.

Spacemacs is for brainlet retards who can't edit a config file. I'm not going to sit around and wait for bugfixes on somebody elses fucking setup.

Just add them yourself and make a PR afterwards, that way you get a fix directly and others asap.

How about I use my own config because I'm not a retard? I don't want to dive into the bizarre undocumented choices and logic flow of somebody else to fix their own mistakes.
Use emacs and just set it up yourself. Spacemacs, doom, and all the others are for genuine retards. If you don't know what features you want go back to vim.

Who needs nix or guix when you have rpm-ostree?

I have a job, wife, and kids.

And as part of your job you can spend 1 minute setting basic configuration options as you work. Nobody competent sits down and plays with emacs for 3 hours to get it "just right", they just flip a switch here and there as they run into it.
Most of emacs configuration is a single command bound to a single mode as you bump into it. If you weren't a retard that relied on using shit the way other people decided you'd know that.

use Vi

Is there some way easily getting started without having to configure / think too much? I like spacemacs prompting to install the layer I need when I open a new filetype, and it already having all the tools I would want.

yeah, let's all work for free for redhat!

>prompting to install the layer I need when I open a new filetype
Like if you don't have haskell-mode installed and open a haskell file?
Just
M-x package-install RET haskell-mode RET

Basically the essentials for emacs are:
Helm
Helm-gtags
Turn electric-pair-mode on globally (and disable it for specific modes with hooks)
Turn on trim-trailing-whitespace on save hook
Cedet
Magit
Yasnippet
multiple-cursors
(Optional, but I like it) color-identifiers-mode

And everything else is basically "I would like feature X" followed by "feature X emacs" and installing the relevant package with M-x package-install
I seriously spend 0 time configuring my emacs, it's mostly mode hooks or global init options to just turn shit on everywhere. Occasionally I'll rebind a key here or there but I've found the default settings sane enough.

Honestly the biggest hurdle to gitting gud with emacs is learning how to use the packages and keybindings. Helm, gtags, and yasnippet have changed my entire workflow just by being able to jump through blocks, snap to definitions anywhere through a stack, and insert blocks with a few keystrokes. It just took me awhile to remember the damn keybindings.

Spacemacs and Doom-emacs come with a lot of shit but I guarantee you're not using any of it because you don't actually know what's there. All those preconfigured settings are going to waste.

>work for free for red hat
>work for free for someone else
What does it matter?

oh, undo-tree is also fantastic.
Basically this guys setup is a very solid base. Doom and Spacemacs come with *so much shit* that's preconfigured for you that it's really hard to change anything without diving down rabbit holes. This setup has the essentials without any weird customizations, letting you set up everything else how you want in your init.el
github.com/tuhdo/emacs-c-ide-demo
tuhdo.github.io/c-ide.html

nix is free software.

>discord
fuck off

So is libostree and rpm

>not just using npm as package manager.

fuck off.

Anyone here using nixops?

Not quite. While Nix is a source based package manager, users are rarely going to have to build anything. In Nix you add "channels", which are basically your repositories. All packages in maintained channels are built by Hydra, which doubles as a binary cache for users. In order to obtain required packages, your local instance of nix will compute a hash from all package inputs, including dependencies, and use that path to attempt a download from hydra.
With this kind of system you get the flexibility of source based package management, with the conveniences of the binary one - you are only going to build packages you customized. It's pretty much the best of both worlds.
Additionally, Nix allows you to have multiple versions of all packages and dependencies on a system in a non-conflicting way. You can have packages depend on different versions of libavcodec, python, perl or whatever and it won't affect anything else on your system. This eliminates some of the pain points of gentoo during updates. All of that is just scratching the surface of what nix can do for you.

hydra?
the thing that lets me collect ungodly amounts of porn?

explain to me this hydra

cd/ci tool that builds the bins for nixos

explain it