NixOS: Everything Everywhere All At Once

NixOS: Everything Everywhere All At Once

No Boilerplate

5 месяцев назад

288,213 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@biscotty6669
@biscotty6669 - 21.04.2024 04:57

Great to see yet more vids on NixOS. For those wanting to try, I strongly suggest installing Nix on your current distro and/or NixOS in a VM. It will be way less frustrating. You can take advantage of many features of Nix without running NixOS itself. Ideally set up a system configured as you like with all you need in a VM, and use the configs to build your configured system right away when you do the real install. You won't have to redo anything, so no wasted time but a "safe" learning environment.

Ответить
@robosergTV
@robosergTV - 20.04.2024 00:48

Windows 10 + WSL2 with Linux = best of both worlds

Ответить
@ALifeLivedFully
@ALifeLivedFully - 19.04.2024 20:23

@NoBoilerplate recently moved to NixOS but I have been struggling with a few things here and there. One was outdated packages like obsidian which you have made a video about previously so i thought you or another follower might have come across this issue already. I wanted to try to build the package myself using the updated code but the hashing etc confused me a bit. Any suggestions anyone?

Ответить
@dennisestenson7820
@dennisestenson7820 - 19.04.2024 06:52

I wonder how hard it would be to convert an Ubuntu/Debian-based embedded system to use nixos instead.

Ответить
@watson-disambiguation
@watson-disambiguation - 18.04.2024 20:25

This video got me to use Nixos, and boy have I been enjoying it. Things occasionally get stuck but mostly just work! It's great, and so much better to work with than my previous experience with Linux and definitely better than with windows.

Ответить
@user-ed5pv8qg1l
@user-ed5pv8qg1l - 17.04.2024 09:55

Hey, would you recommend NixOS to a beginner?

Ответить
@csh9853
@csh9853 - 17.04.2024 03:17

No thanks. I'll stick with Manjaro.

Ответить
@shambali293
@shambali293 - 13.04.2024 03:44

The fromTOML piece is clever, but...

It would make it impossible to use functions provided by the nix language. I extensively use functions to programmatically generate configuration, especially when the config uses the same data multiple places in the file. That is, I apply the DRY (don't repeat yourself) rule.

Using variables to reference other settings is also extremely convenient. Set your hostname once, reference it as config.networking.hostName everywhere.

You could also use fromJSON, but again, please don't.

Ответить
@hipnodude1
@hipnodude1 - 12.04.2024 11:27

I really like the rebuild script you wrote!

you can use something like the following nix to add it to your configuration.nix :D
This will make sure its always available on your PATH

environment.systemPackages = with pkgs; [
(writeShellApplication {
name = "foo";
text = ''
#!/usr/bin/env bash
set -e
pushd ~/dotfiles/nixos/
nvim oatman-pc.nix
alejandra . &>/dev/null
git diff -U0 *.nix
echo "NixOS Rebuilding..."
sudo nixos-rebuild switch &>nixos-switch.log || (
cat nixos-switch.log | grep --color error && false)
gen=$(nixos-rebuild list-generations | grep current)
git commit -am "$gen"
popd
'';
})
];

Ответить
@RealJonzuk
@RealJonzuk - 11.04.2024 20:38

i never knew i could use auto update wtfff

Ответить
@icicleditor
@icicleditor - 10.04.2024 18:14

Im in a class for linux server config and have been using it as an end user for about two months now, and I gotta say, this is a lot of benefits! I'm probably gonna keep being on Mint Cinammon for now since it works fine enough for me thusfar and I do not have a lot of energy flexibility at the moment, but I'll definitely bookmark this for later.

Ответить
@lavish125
@lavish125 - 10.04.2024 14:31

a bit of an off topic question but since u mentioned you use linux to make these videos as well, what video editor do you use?

Ответить
@GungaLaGunga
@GungaLaGunga - 10.04.2024 09:25

wow thank you!! I will try it. Looking for new daily driver distro.

Ответить
@TheOPtmal
@TheOPtmal - 09.04.2024 18:04

thoughts on Guix? I personally prefer and use it.

Ответить
@scintilla3957
@scintilla3957 - 07.04.2024 13:18

Nix has always seemed a bit weird to me because while it offers a very unique feature set, it is a feature set that exists by restricting you to only work the "nix way". Like, of course, your system would be declarative when you have to write a declarative config file to get your OS working properly.

And I'm sure that it's definitely far smoother about it than something like an Ansible config, but it does make me wonder. NixOS has a high barrier to entry, so if you took that time and energy spent learning Nix and invested it instead in writing documentation, a bash script, or Ansible config for your system, how much of an edge does Nix retain?

Reproducibility, stability, declarativeness. These are not features exclusive to Nix. If all one wants was some middle-ground between up-to-date packages and stability, then you can use Tumbleweed with snapper rollback or Fedora with either Silverblue or Workstation (rpm-ostree and dnf both have rollback). Bash scripts and these solutions may not seem as elegant as Nix, but Nix is hardly devoid of issues.

The documentation is sparse, especially if you come from Arch. The support for SELinux is nonexistent, and I imagine AppArmor as well, considering the policy files would likely differ between it and the conventional OSs. The Nix language is unpleasant, and some things are not yet well supported (you can install flatpaks, but they're not declarative).

I'm not saying that Nix doesn't have its place, but I thdon't see what makes Nix so special. Even the repo package count is questionable. How many of those packages are well-maintained, how many are kept up-to-date? And really, beyond a certain point, does it matter?

Ответить
@livb4139
@livb4139 - 06.04.2024 21:21

are you still using nixos

Ответить
@mementomori1868
@mementomori1868 - 05.04.2024 10:45

I dont use now arch btw

Ответить
@aberroa1955
@aberroa1955 - 27.03.2024 16:36

No boilerplate starts with boilerplate greeting and boilerplate backstory.

Ответить
@HUEHUEUHEPony
@HUEHUEUHEPony - 25.03.2024 09:38

Guix is better

Ответить
@ChaoticMagnet
@ChaoticMagnet - 24.03.2024 20:51

I use NixOs btw! ❄️ 😆

Ответить
@cagataykaydr3015
@cagataykaydr3015 - 24.03.2024 16:18

I was planning to switch to this great distro for a long time (and from MacOS, bcs god bless Linux) And I did! Thanks to you. But I have encountered a big problem, which I guess you already solved: Neovim inside NixOS. NixOS's biggest difference is it's not working binaries since it needs other dependencies and it's not the way NixOS runs, so for example AppImages doesn't work out of the box. Therefore, this situation has got me, I can't use Treesitter and can't install LSP's via Mason because installed LSP's are binaries. Can you enlighten me if you can about how did you solve this problem?
And is there any other negative aspect did you encounter that you can tell to give advice a new NixOS learner?

Ответить
@dooshbagism
@dooshbagism - 24.03.2024 02:16

I know basically nothing about coding and I didn’t understand a word of this video, but I still watched the whole 15min of this shabang of an engaging saga that it was. It’s been a while since I’ve felt so dumb. Thank you for the reality check.

Ответить
@Alniarez
@Alniarez - 22.03.2024 14:11

My arch system "broke" just once in the last 4 years.

Still, next time it breaks (it eventually will), I promise I will try NixOS.

Ответить
@alcablack2750
@alcablack2750 - 21.03.2024 16:38

Wow. You can really make someone excited about NixOS. I will definetly try it out and use your video to help me along the way. Thanks! :)

Ответить
@MeshVoid
@MeshVoid - 21.03.2024 10:21

Just to mention a thing about NixOS having way more packages than aur. Does it "really" have more packages? I am currently using NixOS and what I see is packages for separate fonts, libraries, many packages are poorly structured and don't have lts versions of the same software, so sometimes you can't just declare an older version and more modern version of the same software to be pulled without writing some workarounds. If you have to declaratively point to each separate element from fonts to drivers, libraries, software, then, yes you will end up having more repositories than anything else. I can't say that these packages are very well maintained, sometimes packages have broken links and you have to figure out what to do about it and it's not pleasant.

Ответить
@j.h.6672
@j.h.6672 - 21.03.2024 01:29

It's like Ansible for any other linux distro.

Ответить
@Embassy_of_Jupiter
@Embassy_of_Jupiter - 21.03.2024 00:52

ephemeral environments seem really cool

Ответить
@syedahkam7164
@syedahkam7164 - 20.03.2024 20:00

Tris, You're awesome and you got me converted to Nix. Loving it so far!

Ответить
@DeuxisWasTaken
@DeuxisWasTaken - 20.03.2024 18:00

I like home-manager, it just extends the NixOS declarative single place configuration thing to my user settings. I have my ZSH, GIT and whatnot config there.

Ответить
@DeuxisWasTaken
@DeuxisWasTaken - 20.03.2024 16:49

Thanks for making this video! I learned about Nix about 2 years ago when searching for an heavily customizeable bleeding edge OS that doesn't have as annoying quirks as Arch or Gentoo, and I'm still mad I only then learned it exists. It's by far the best thing to happen to Linux distros since the invention of package managers.

Ответить
@norude
@norude - 20.03.2024 13:09

I have tried nixos right after the video came out. After 3 weeks of experience, my advice is RTFM. Specifically the nix docs.There is probably a guide for whatever you"re trying to do

Ответить
@Terraspark4941
@Terraspark4941 - 20.03.2024 11:38

You sound like if Tom Scott took a lighter coffee today and decided to talk about Linux distros instead of weird places around the globe; and I love it ❄
I wonder how long it may take for NixOS to overtake Arch, with such a large difference in safety and simplicity? Great video, overall!

Ответить
@Skelterbane69
@Skelterbane69 - 17.03.2024 16:57

But does it use systemd?

Ответить
@Sluggernaut
@Sluggernaut - 17.03.2024 15:15

Not done watching so you probably answer this, but how have I never heard of nixos?

Ответить
@hermezkonrad
@hermezkonrad - 16.03.2024 23:59

Stability and freshness are mutually excluding each other. Zero discussion, even developers are warning users that nightly releases are used at risk of user.

Config file is effectively equal to modern python environment managers like poetry. You use cli to manage packages and config is updated after that. Or you can write changes in config. Unique selling point of configs are either malicious advertising or unintended stupidity.

Reverting to previous environment as a selling point is effectively caters to people who don't want to write bash script.

NixOS is good looking Linux distro, but this video is making zero reasoning to switch even from debian derivatives.

Ответить
@MagnusNemo-xc5nx
@MagnusNemo-xc5nx - 16.03.2024 20:58

welcome to the club

Ответить
@draakisback
@draakisback - 16.03.2024 07:12

It's been a joy to watch your videos as a content creator and as a software engineer. You're given me some good ideas for building my tutorials without having to sift through an hour long live code session. If I use markdown like you do, I can do most of what I want and then add animations and audio in editing.

Ответить
@youtub-fj8mu
@youtub-fj8mu - 16.03.2024 06:46

Ill never get bleeding edge users
How do you put up with a random automatic update fucking up your system???

Ответить
@DerekVerLee
@DerekVerLee - 16.03.2024 02:08

I'm curious about the comment that Apple hardware is not as good as they claim. It's relevant to some decisions that I need to make.

Ответить
@hentai3470
@hentai3470 - 16.03.2024 01:36

the one file you have to adjust to do thing is so close to being something that a non tech person would(not could) do if it was just given a gui it might be a thing that someone who dose not want to deal with linux bs would like

Ответить
@theoneandonlyluco
@theoneandonlyluco - 14.03.2024 19:51

goddamit now i have shiny object syndrome on my OS, maybe i should go try nix

Ответить
@explorelamy
@explorelamy - 14.03.2024 12:28

Can one also save all Firefoxx config with all extension in the same file?

Ответить
@eightheve
@eightheve - 14.03.2024 08:16

This video is so straight-to-the-point and well made that it may have just convinced me to reinstall my OS. insanely good video for what seems like a perfect OS

Ответить
@SahilRaj-tw2xb
@SahilRaj-tw2xb - 13.03.2024 15:33

Hey Man, whenever I try to Install Etcher in Nixos via the nix configuration file it always gives me an error of Missing EOL when I rebuild. I switched to Nixos Unstable and still nothing. Not much available on the internet.. Can you please help?

Ответить
@gardenofava
@gardenofava - 13.03.2024 07:08

I hadn't really heard anything about nixos before this video. I was sold almost immediately and now have over 2500 lines of config files

Ответить
@jogicodes
@jogicodes - 13.03.2024 00:28

Been using linux for 6 months. What drives me insane and i could not adjust is the command line copy paste difference. crtl+shift is needed. I keep killing my dev server because I want to copy using ctrl+c. Can that be fixed? Everytime i mess that up, I want macOS again just because of the superior keyboard layout

Ответить
@milahu
@milahu - 12.03.2024 21:57

same, i went from archlinux to nixos, because of "dependency hell" on archlinux.
archlinux: glibc version mismatch errors, can install only one rustc version ...
i love nix-shell for development, i simply can patch all packages, across all languages, py, js, c, ...
nixpkgs caveat: some packages are repackaged binary builds = problem of trust

Ответить