FINALLY trying out NixOS - Best Server Linux Distro??

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 174

  • @agustinperezdelcastillo1593
    @agustinperezdelcastillo1593 4 месяца назад +8

    Please make a video on setting up NixOS for desktop/laptop daily driving as a developer! I've been getting into it recently and noticed there's very few good RUclips guides on it, most of which are at least partially outdated. Your videos have always been extremely helpful for everything Linux, so would absolutely love to see you dive deeper into NixOS, and I have a feeling lots of other people looking for good entry resources will also find it helpful!
    Thanks for all you do!

  • @maxarendorff6521
    @maxarendorff6521 5 месяцев назад +107

    NixOS is THE BEST server distro IMO. I've been using it for that for years and I could not imagine going back to anything else at this point.

    • @danielpicassomunoz2752
      @danielpicassomunoz2752 5 месяцев назад +1

      Any recommended tutorial?

    • @benji_builder
      @benji_builder 5 месяцев назад

      ​@@danielpicassomunoz2752 vimjoyer is super good imo

    • @maxarendorff6521
      @maxarendorff6521 5 месяцев назад

      @@danielpicassomunoz2752 Just read the relevant parts of the manual and wiki to get going. There's some useful videos on RUclips as well but don't bother with the more advanced stuff like flakes and home manager in the beginning.

    • @AppsTricksByNazakatUmrani
      @AppsTricksByNazakatUmrani 5 месяцев назад +10

      My brother, it isn't only the best for servers, it is best for normal daily drive machines as well, I have been using NixOS for a few months now, and I myself can't imagine my life without it

    • @james-cucumber
      @james-cucumber 5 месяцев назад

      @@danielpicassomunoz2752Vimjoyer gives a pretty good introduction, EmergentMind has some fantastic videos with more details. One way I learned a lot (and still do!) was looking through others’ dotfiles. Using google’s `filetype:nix` or your search engine’s equivalent is very useful for this.

  • @JesseSaunders42
    @JesseSaunders42 5 месяцев назад +62

    I just started using it and am falling in love. I need to rebuild my homelab and will attempt to go for as much nixos as possible. My favorite aspect is that once I figure something out, it's now done in perpetuity and the solution documented in the code. I don't have to keep a separate wiki or documentation and re-learn how to do things every time.
    As you get going, there are flakes and home-manager which start to complicate things while also expanding Nix's power. Learning NixOS seems a bit harder than other "different" Linuxes due to it being multiple new paradigms all at once, so I've been gobbling up guides on RUclips.

    • @Flackon
      @Flackon 4 месяца назад +3

      I've been using Ansible playbooks for that, which aren't as declarative as NixOS, but more portable. I'm curious to try NixOS as a server OS though. Not sure what I would use it for.
      For example, Cockpit is not as well supported as it if for e.g. Debian

    • @shady4tv
      @shady4tv 4 месяца назад

      @@Flackon not as well supported? in what way?

    • @Flackon
      @Flackon 4 месяца назад +3

      @@shady4tv The Cockpit VM management module, for instance, just doesn't work on NixOS. If you want a VM or container management UI, you have to use Incus or similar. The packagekit module also isn't supported, for obvious reasons

  • @J.erem.y
    @J.erem.y 5 месяцев назад +28

    The reason we use the method of adding users to groups declaratively separately is so if you want to remove docker you can just edit it in one area. This way it will remove docker and you from the group instead of removing the line for docker and going all the way to your user section. Best to use the user settings at the top as a base you can put on any machine and only add to the groups if the services are there.

  • @HeieiX
    @HeieiX 5 месяцев назад +54

    I’d argue the reproducibility of NixOS makes it the best Linux distribution, period. It can be light or heavy, depending on your config. It can be a server or desktop, depending on your config. Started using NixOS over the past 20 months and it has impressed me more than any disto before it.

    • @FengLengshun
      @FengLengshun 27 дней назад

      I think it is the best if you know what you're doing and is willing to dive into the annoying process of learning how to do Nix configs. Which is easy at basics level, but for Nix to become THE best distro for you, you do want to dive pretty deep into how it all works.
      Personally, I think if you're just installing for a few specific usecases, using ublue-os' builds like Bazzite and ucore, or customizing them, or setting up your system from a normal Fedora, makes more sense than using NixOS.
      But NixOS is one of those few distros where there IS a great usecase and feature of it that I wouldn't be confused as to why people use it instead of more mainstream distro which works for most people.

  • @DavidDavies-eu7fi
    @DavidDavies-eu7fi 5 месяцев назад +19

    You can also put containers (systemd containers, who knew 🙂) into the nix config as well. So you could deploy a whole system + containers with a single text file. Pretty cool

    • @magnificoas388
      @magnificoas388 5 месяцев назад +2

      You can use NixOS LXC containers too with the help of Incus

  • @jan-Juta
    @jan-Juta 5 месяцев назад +42

    NixOS is what got me to stop jumping distros, with home-manager and flakes it's pretty much perfect for my desktop and server needs. As for your setup I'd recommend at least getting flakes set up, and dropping docker in favor of running your services the Nix way, your docker containers are unmanaged state, when you copy over your config to a new machine they won't be carried over.

    • @danielpicassomunoz2752
      @danielpicassomunoz2752 5 месяцев назад +2

      What's the nix way?

    • @moh.anifyuliansyah9863
      @moh.anifyuliansyah9863 5 месяцев назад

      ​@@danielpicassomunoz2752 Doing computing task with Nix lang

    • @magnificoas388
      @magnificoas388 5 месяцев назад +1

      Same for me: NixOS/plasma6.1/wayland/Nvidia3060 w last 555 betadrivers: ALL is flawless for me

    • @james-cucumber
      @james-cucumber 5 месяцев назад

      ⁠@@danielpicassomunoz2752systemd services defined in your nix config is the “nix way” to run services I think. You can also define your docker containers in your NixOS config similar to docker-compose

    • @rbdm
      @rbdm 5 месяцев назад

      @@danielpicassomunoz2752I’d assume it’s creating a package and the respective options for it. Obvious issue with that is not all package managers or languages being equally well supported.

  • @HORUS-IT
    @HORUS-IT 5 месяцев назад +12

    Even after only a short period of getting to know NixOS for test/lab type servers, I was already impressed with the robustness of the package manager and the quality of available documentation. The "unofficial" Wiki deserves special mention, providing copy-and-paste ready configuration snippets for nearly everything I wanted to do. I am currently in the process of switching production servers over to NixOS, and it has been going without any problems so far. My next goal is becoming more fluent in the Nix Language. In summary, I found that declarative system configuration with the added benefit of not having to worry much about software dependency hell is indeed as great as it sounds, at least for the kind of servers I operate.

    • @OOO-mn1ds
      @OOO-mn1ds 4 месяца назад

      Idk why but this seems as written with AI 😂😂

    • @HORUS-IT
      @HORUS-IT 4 месяца назад

      Nothing artificial about it, kiddo. 😉

    • @kamikaze_twist
      @kamikaze_twist 4 месяца назад +1

      Same here, thinking of switching out my ubuntu cloud init vm templates running custom vendor.yaml files with NIX-OS template and a range of predefined config files for provisioning a server as heavy and light as I want. The cloud init custom scripts are barely as configurable as this seems to be. Baffles why more development and widespread enterprise adaption is not done for it! And the best part is that you can have one completely bare bones master vm template that allows ssh, push the required configuration file for that vm, switch and rebuild and you are done!

  • @DylanMatthewTurner
    @DylanMatthewTurner 5 месяцев назад +13

    I love it for my daily driver even. Just for the fact I don't have to remember I edited some random /etc file at setup when it causes problems down the line. All my changes from default (packages, configs, etc) are all in one place. It's just so convenient

    • @magnificoas388
      @magnificoas388 5 месяцев назад

      yes same for me: configuration.nix is my precious :)

    • @sparky8251
      @sparky8251 5 месяцев назад

      And unlike with tools like ansible, deviations are all kept here vs only the ones done with the tool, while still allowing for "handmade" deviations from the baseline. That stuff bites you years in and I love that nixos flat prevents it from ever happening.

  • @daliareds
    @daliareds 5 месяцев назад +21

    For the nmcli connection command, you can give it the `--ask` flag instead of the password argument and it'll prompt you for the password and keep it hidden. That way you don't have to add the blur in post

    • @matthiasbendewald1803
      @matthiasbendewald1803 5 месяцев назад +5

      and nobody can look it up in your history file of your shell if you forgot to remove it there...

    • @crackpippi
      @crackpippi 5 месяцев назад +7

      Better yet, fire up nmtui and you have a terminal ui.

    • @matthiasbendewald1803
      @matthiasbendewald1803 5 месяцев назад +1

      @@crackpippi That is awesome, didn't know that, thank you!!!

  • @krtirtho
    @krtirtho 5 месяцев назад +10

    I like to think NixOS as the Docker configuration for your Host system. I really love it's declarative approach to configuring the OS. It's awesome. In future, I hope NixOS will have a GUI config for desktop users.

  • @InspiredScience
    @InspiredScience 5 месяцев назад +1

    0:38 - it's dupli-kit-able. Nice!
    Thanks for your videos, they're always excellent and most importantly, paced considerately / not drawn-out.

  • @james-cucumber
    @james-cucumber 5 месяцев назад +3

    The other errors (actually warnings despite the red) you mentioned are just a couple of renamed options in the latest (24.95) version of NixOS. I’m guessing your config was started with a 23.11 default config, rather than a 24.05 default config. It’s just a case of finding and replacing the one instance of `services.xserver.layout` to `services.xserver.xkb.layout`, and the same for `variant`.
    Awesome to see more people getting into NixOS, thanks for the video!

  • @willfrisbie7918
    @willfrisbie7918 5 месяцев назад +11

    Awesome video. Please keep the NIX OS content coming!!

  • @gusslx
    @gusslx 5 месяцев назад +10

    I think NixOS is actually a server oriented distro. I used it as my desktop daily driver for a year and it took a lot of shenanigans to make it work. Turns out immutability and lack of dynamic libraries may not be something you need nor want. Came back to Pop OS and I'm happy with it.
    For the server though, NixOS is the wet dream of any sysadmin.

    • @jan-Juta
      @jan-Juta 5 месяцев назад +9

      With home-manager and flakes it's a great desktop distro. Just a bit more complicated of an initial setup.

    • @gusslx
      @gusslx 5 месяцев назад +4

      @@jan-Juta yeah but I don't want my OS to fight me to get stuff working. I use HM but only for CLI tools. NixLD for GPU accelerated apps is not too reliable yet.

  • @saffanalvy
    @saffanalvy 5 месяцев назад +2

    I have seen a lot of nixos videos and never felt like using it. But this video, with the simplicity of Brandon, made me feel like I should use it as well.

  • @allliver123
    @allliver123 5 месяцев назад +1

    ive been dual booting nixos for about a month now and its awesome

  • @thomziq
    @thomziq 5 месяцев назад +5

    I was thinking the same thing of making a NixOS Jellyfin media server instead of Ubuntu one :) Thanks!

  • @vodros
    @vodros 5 месяцев назад +10

    You don't need to add Cockpit as a package, setting it up as service takes care of that for you :)

    • @brainstormsurge154
      @brainstormsurge154 5 месяцев назад

      Thanks, I was about to comment that as well. It doesn't hurt anything but it is redundant.
      Also, you can look at options like the Cockpit as different search engine on the same page you search for packages. It's in the top of the page.

    • @Zendal79
      @Zendal79 4 месяца назад

      Services are also auto opened in firewall

  • @eldino
    @eldino 4 месяца назад

    The central configuration file is pure genious!

  • @dmezeyo5941
    @dmezeyo5941 5 месяцев назад +6

    I noticed you used the port 9433 instead of port 9443 at time 10:40, Wondering if you did need to open the ports in the firewall section.

    • @trashken
      @trashken 4 месяца назад

      Wanted to say the same thing

  • @argee55
    @argee55 5 месяцев назад

    Thanks for the video. I’ve been attempting to setup a Linux server and have been stumbling with other distro’s. I’ll definitely be trying NIX. Thanks again.

  • @WhyDoesNothingWork
    @WhyDoesNothingWork 5 месяцев назад +1

    I really like NixOS for servers, i've been using it for quite a while now and have hundreds of installs in production, I definitely do not miss managing ubuntu/centos even a little bit

  • @linuxbasics7060
    @linuxbasics7060 5 месяцев назад +4

    colour me intrigued. I'm going to have to try it in a VM i like the config file approach

  • @nadtz
    @nadtz 5 месяцев назад

    I've just started playing with NixOS and it's very different but I can see why people like it. Once I finish wrapping my head around it I could easily see it becoming part of my homelab setup.

  • @cnlawrence1183
    @cnlawrence1183 4 месяца назад +1

    I've been "daily" driving nixos on my personal laptop. I'm using flakes and homemanager. Homemanager is great as you can sync home profiles over os's like Linux, MacOS and WSL2 as well as a synced dotfiles if you use git to version control. Gnome settings is super easy to keep extensions and config declared.
    This has brought the best modularity to crafting your own distro. It's easy to change out things like gnome for kde.

    • @FedoraSilverblue
      @FedoraSilverblue 2 месяца назад

      Bro, what does home manager do? I still don't understand, even though I watched the video. How does it make it easier for you to use a computer that has both Linux and Mac OS?Do I need it? I am the only one using my computer almost all the time.

    • @shringe9769
      @shringe9769 Месяц назад +1

      @@FedoraSilverblue NixOS only manages the system(/etc); home-manager is like NixOS but manages the user(~/.config) instead. Since home-manager does not touch the system, it can be used on any Unix machine. This allows you to declare and sync your user configuration across any Unix machine easily, just like how NixOS configurations can be synced across different machines.

    • @FedoraSilverblue
      @FedoraSilverblue Месяц назад

      @@shringe9769 Thank you!

  • @donaldwilliams6821
    @donaldwilliams6821 5 месяцев назад +1

    Nixos is amazing. it's my daily driver Home manager and Flakes makes it way more interesting and powerful Enjoy and keep making nixos videos!

  • @sherrilltechnology
    @sherrilltechnology 4 месяца назад

    I had someone mention that OS in my comments on my video of Arch vs Mint, maybe now I am going to try it!! Great video!!

  • @moh.anifyuliansyah9863
    @moh.anifyuliansyah9863 5 месяцев назад

    I glad you try NixOS too. I'm use it too on my lovely laptop and I love it with it. Don't forget for trying setup Flakes too, Bro. You will get much advantages from it. Good job 👍🏻

  • @magnificoas388
    @magnificoas388 5 месяцев назад

    Thx for this particular topic! I am using NixOS as a desktop and as a server too. You can use the combo NixOS/Incus for homelab! Very nice as you can stay in the NixOS realm for both Incus server and linux(NixOS) containers (LXC) :)

  • @furbyonsteroids
    @furbyonsteroids 5 месяцев назад +1

    I tried NixOS a while ago as a Desktop and really liked it, but I did have an issue with firefox where despite being on KDE it would always use the Gnome window decoration no matter what. So no minimize/maximize buttons. Could never figure out how to fix it even after googling for hours and it bothered me so I went back to a "normal" distro. But that's NixOS's biggest weakness imo. The lack of documentation. Sure, there's a lot but imo it's not enough.
    As a server distro however, I could see it being really useful.

  • @silentbob1236
    @silentbob1236 5 месяцев назад +3

    nix-shell alone makes it worth it to use Nix. I switched about a year ago and have not looked back.

  • @zenmaster24
    @zenmaster24 5 месяцев назад +1

    can you do a video on flakes? like how you migrated from configuration.nix to a flake for example

  • @rlifts
    @rlifts 5 месяцев назад +3

    It's not all sun shine and rainbows. Wait till you have no internet and have to fix something or use a binary. That being said, the good far outweighs the bad so that's why it's still my daily driver.

  • @Ethorbit
    @Ethorbit 4 месяца назад

    NixOS is perfect for servers. I stopped using Ubuntu Server once I setup a NixOS config and will never go back.
    I think it's actually the best distro, period. Switched workstation from Arch Linux to NixOS which has benefited hugely from the way package environments are handled and soon I plan to switch gaming from Windows 11 to NixOS because I'm sure the reproducible nix configuration will be PERFECT for the tweaks some specific games will need, to have it all version controlled and easily readable in code makes this all a lot less of a painful experience.

  • @Dakforever1
    @Dakforever1 4 месяца назад +1

    I just moved back to arch, but nix as a server for docker is something I should try

  • @loremipsumamet
    @loremipsumamet 5 месяцев назад +7

    Nahh the bot comments are crazy annoying

  • @pg_usa
    @pg_usa Месяц назад

    In the future are you planning to extend your small computer an extra one or more to work together in a cluster?

  • @astralab-d1
    @astralab-d1 26 дней назад

    NixOS is my next OS after forever on Ubuntu Studio. Great channel and btw dude, get some sun. You’re looking like Zombie college.

  • @SAMS300FOXES
    @SAMS300FOXES 5 месяцев назад

    I could be wrong, but it may have been because you tried to go to port 9433 instead of 9443; I think typically Docker does handle the firewall configuration, but I've also never run it rootless.
    Would be love to know if that was the issue or if the firewall config was needed too.

  • @caspersmith7112
    @caspersmith7112 5 месяцев назад

    curious started and got lost but still curious on something like a storage type tutorial video because your pretty in-depth

    • @TechHut
      @TechHut  5 месяцев назад

      When you say storage are you talking network shares, file systems types, share types?

    • @caspersmith7112
      @caspersmith7112 5 месяцев назад

      @@TechHut start with network attached storage basically with some add ons, but when i first started checking out NIX was at very start really wasnt much out there cause im honestly not the best reader.i learn better by like in person teaching. why youtube is best. i can see how its suppose to be start and end instead of a few screen-shots.if i mess up rewatch that part

    • @caspersmith7112
      @caspersmith7112 5 месяцев назад

      @@TechHut like with docker can run video stream service thru it.. im probably one of few but proxmox and dell-t410 dont like each other, truenas is ok for just storage period for me

  • @umad0p
    @umad0p 5 месяцев назад

    Thx for the tip gonna spinn up a vm with it today and test it out.

  • @darthkielbasa
    @darthkielbasa 4 месяца назад

    Alright, this is kinda fun. I fat fingered something, rebooted and chose a previous build. Now i get to screw up all over again. Pretty sweet.

  • @xbz24
    @xbz24 4 месяца назад

    thank you for the intro to nix

  • @mikedoth
    @mikedoth 5 месяцев назад +1

    It's like a built-in ansible which is kinda cool.

  • @AshLordCurry
    @AshLordCurry 4 месяца назад

    Would it be a good idea to use this as a personal NAS

  • @Stinosko
    @Stinosko 5 месяцев назад

    I used nixos to get nvidia driver with cuda and docker cuda support to work on my home server. I tried manually installing in ubuntu server but failed couple of times. I found a nix configuration, switched to nixos server and it worked almost flawlessly.
    Only issue i still have left with nixos is trying to use vscode to remote connect inside nixos to manage my different projects on the server...

  • @YannMetalhead
    @YannMetalhead 4 месяца назад

    Good introduction to NixOS.

  • @adjbutler
    @adjbutler 4 месяца назад

    i use NixOS btw (my main desktop) switched from windows 12 months ago

  • @ThalusA
    @ThalusA 4 месяца назад

    I absolutely love the philosophy behind NixOS, however as of today I find it too hard to understand. The wiki is outdated, a lot of information aren't centralized, stability of flakes in order to not use nightly builds, the UX/UI for nix manager, too much cli commands when you want to do basic stuff. There should be a huge work on UX/UI especially standardisation about how to setup your system and local project as well.
    So I'm just waiting for it to be much better. Until then I'm still on Fedora

  • @TheLazyJAK
    @TheLazyJAK 5 месяцев назад

    I like usually like the documentation in the config file, but this seems like a bit much. I would rather start fresh with a blank file where I can overwrite the defaults instead of tweaking the giant file full of defaults.
    I know it doesn't technically make a difference, but it just feels better that way.

  • @deshraj-tiwari
    @deshraj-tiwari 2 месяца назад

    4:53 Bro humiliated every vim user on the planet (ofc including me) 💀

  • @sanketss84
    @sanketss84 Месяц назад

    just checking out coming from a ubuntu server box , I wanted to check this out for the declartive approach nix os takes.
    one question I had was when we ssh and access it headless then add packages using config nix file.
    we dont have access to the boot loader while booting to select genration from boot menu , how do we do that via ssh is it possible ?

  • @samsh0-q3a
    @samsh0-q3a 5 месяцев назад +1

    interesting, ive always wanted more coverage on Nix but most people dont want to touch it because its so... "odd"? lol

  • @jakobw135
    @jakobw135 4 месяца назад

    Is there a way to TRY NixOS before installing, like you can with Fedora, using a thumb drive ISO file?
    If so, WHERE do I find this file? I haven't been able to, so far.

    • @kyfeman
      @kyfeman 3 месяца назад

      When I was first playing with NixOS, I just installed it in a virtual machine. I used Virtualbox since it's free. When you are setting up the virtual machine, give it a decent amount of disk space as updates can nearly double the disk space used if a lot of files were changed. On my first attempt, I didn't know this and after a bunch of experimentation and a few updates, I ran out of disk space on a rebuild. To avoid this, learn how to list and delete system generations to free up disk space.

  • @AslamNazeerShaikh
    @AslamNazeerShaikh 5 месяцев назад

    I always prefer debian based distro as they come with lots of software support.

  • @anasouardini
    @anasouardini 5 месяцев назад +1

    They just need to throw an equivalent for `archinstall` on it.

  • @oscs4556
    @oscs4556 5 месяцев назад

    Nixos is my daily driver with OpenSuse kalpa

  • @sergiuoanes4635
    @sergiuoanes4635 4 месяца назад

    What's the name of the font ?

  • @uuu12343
    @uuu12343 5 месяцев назад +1

    NixOS is amazing about recreation and whatnot - until you need to perform system administration because something within nix breaks
    Like imagine you cant even use the nix rollback

  • @mylinuxgr5050
    @mylinuxgr5050 5 месяцев назад

    I am currently testing NixOS on a small backup server. I have this problem that whenever there is a power failure, the OS does not come back. It seems that it is stuck in the gnome login screen. I know that I can somehow change the settings, but I am not sure how to do this in NixOS.

    • @jan-Juta
      @jan-Juta 5 месяцев назад

      That's a problem with how you configured GDM, not NixOS. Sounds like you want to enable autologin.

    • @danielpicassomunoz2752
      @danielpicassomunoz2752 5 месяцев назад +3

      The real question is: why.in the world would u install a graphic interface to your server?

    • @mylinuxgr5050
      @mylinuxgr5050 5 месяцев назад

      @@jan-Juta My question was if GDM configuration would be possible in an immutable distro, such as NixOS...

    • @mylinuxgr5050
      @mylinuxgr5050 5 месяцев назад

      @@danielpicassomunoz2752 You are right. I just installed NixOS on a spare old PC that happens to be one of my backup servers, so Gnome was the default.

    • @magnificoas388
      @magnificoas388 5 месяцев назад

      @@mylinuxgr5050 see this video here: TechHut choose server (headless) installation

  • @fleshwound8875
    @fleshwound8875 2 месяца назад

    I keep seeing nix poping up and i dont want to learn it yet, but I keep getting closer... like learning rust and zig... lol and gleam... /ugh

  • @peterheggs512
    @peterheggs512 5 месяцев назад +1

    I prefer ansible for servers. It gives me much more freedom and also allows me to have servers outside of the nixos realm, such as build servers for multiple operating systems - and it's also much easier to apply changes across multiple machines.

    • @jan-Juta
      @jan-Juta 5 месяцев назад +2

      Ansible and Nix aren't really comparable. Ansible is automation, Nix is IaC, they're two very approaches, especially as it pertains to state management.

    • @peterheggs512
      @peterheggs512 5 месяцев назад +1

      @@jan-Juta I'd disagree on that. Ansible is code to setup the infrastructure, which is pretty much IaC. Ansible is not automation like a simple script, instead it is used to bring a server to a certain state, which is a pretty similar goal with a different syntax.

    • @shekharnandkoemarsing158
      @shekharnandkoemarsing158 5 месяцев назад

      @@peterheggs512 Ansible does not setup the infrastructure, Ansible configures the already deployed infrastructure, hence why you need to add hosts to a file with their ip in order for it to do anything. IaC is one way of actually deploying infrastructure, but not configuring it (you could, but it is recommended to keep these two thing seperate). Example: you would use Terraform to deploy a ubuntu VM, then you would use Ansible to setup the ubuntu VM with the software and config of that software that you want.
      The comment above yours isn't accurate tho either, "Ansible is automation, Nix is IaC", both Nix and Ansible can be seen as automation, actually anything that does not require any 'manual' steps, can be considered automation. Also, Nix is not IaC, you don't deploy the actual server with Nix, Nix is only configuring the server for you, so in that sense it actually is comparable to Ansible. What Nix and IaC have in common tho, is that they are both declarative in nature, meaning I define a config file somewhere where I paint a picture of how I want something to look like, and it then figures out the steps needed to get to that desired state. Ansible is a bit of a mixed bag in that aspect, originally it was not declarative, but over time more and more things have become declarative too, though there are exceptions.
      Where Ansible and Nix really differ, is in their philosophy if you will. Ansible embraces the idea of ad-hoc configuring, while Nix is more like Docker in the sense of immutuble image layers that create a very precise clone each time. In theory all Nix deployments should produce the exact same state each time, while the same cannot be said for Ansible (depending on what you're configuring tho).

  • @iamrage4753
    @iamrage4753 5 месяцев назад

    Might replace debian12 with this, just wondering will a deskpi pro work script install ok, anyone know?

  • @MrAlanCristhian
    @MrAlanCristhian 5 месяцев назад +1

    4:53 nano 💪

  • @justinharveyjohnashby
    @justinharveyjohnashby 5 месяцев назад

    Hell yeah it is!! Woo!

  • @benjy288
    @benjy288 4 месяца назад

    I used nixos for well over a year, its a pretty cool idea, some things can be hard to configure, but I ended up moving back to arch due to the woke diversity issue, and the mods shutting down talk about it on their discord, it also started happening in the nixos subreddit too

  • @adjbutler
    @adjbutler 4 месяца назад

    you can make docker containers with Nix not just linux machines....

  • @DreamsAPI
    @DreamsAPI 4 месяца назад

    NixOS is the best, however some pitfalls as it leaves security out. Hopefully security can be build into NixOS. Try it in a vm till you get comfortable then there is no going back to anything else eg windows or any number of linux distros'

  • @adjbutler
    @adjbutler 4 месяца назад

    NixOS!!!! NixOS!!!! NixOS!!! Nix Dev Ops is the best....

  • @simpleprogrammingcodes
    @simpleprogrammingcodes 5 месяцев назад

    What happened to your laptop???

  • @mateowoetam
    @mateowoetam 5 месяцев назад

    Actually cool, I'ma look into using nix more

  • @kamikaze_twist
    @kamikaze_twist 4 месяца назад

    Thinking of switching out my Ubuntu Cloud-Init templates running custom vendor.yaml files with NIX-OS master template and a range of predefined config files for provisioning a server as heavy and light as I want. The cloud-init custom scripts are barely as configurable as this seems to be. Baffles why more development and widespread enterprise adaption is not done for it! And the best part is that you can have one completely bare bones master VM template that allows ssh, push the required configuration file for that VM, switch and rebuild and you are done!

  • @magnificoas388
    @magnificoas388 5 месяцев назад

    Finally !!

  • @emilnordgard5228
    @emilnordgard5228 5 месяцев назад +4

    Nix is better for containers than docker

  • @matthiasbendewald1803
    @matthiasbendewald1803 5 месяцев назад +1

    NixOS Made me Stop using docker as it is better.

    • @aimpizza6823
      @aimpizza6823 5 месяцев назад

      How do you host services that are optimized for Docker and have no NixOS options?

    • @matthiasbendewald1803
      @matthiasbendewald1803 5 месяцев назад

      @@aimpizza6823 via docker, What Else?

    • @meow-is-edible
      @meow-is-edible 5 месяцев назад

      @@aimpizza6823I use podman with a NixOS module called arion, check out, it's great! Took 4 years of NixOS to find this.

    • @matthiasbendewald1803
      @matthiasbendewald1803 5 месяцев назад

      @@aimpizza6823 i dont have such, but i would need more information to decide.
      It could be best to Just use docker or adjust the Service so it works fine in nix.
      If it is only the Options that are Missing it could be Just fine, If the Service can be easily configured by an config File?

  • @Rohambili
    @Rohambili 5 месяцев назад

    WTF? Are you sure about that title? O.o

  • @manjilunnobi
    @manjilunnobi 5 месяцев назад

    Secure os ... Nix os

  • @kettusnuhveli
    @kettusnuhveli 5 месяцев назад +5

    Here to fight against the never-ending tide of comment bots!

  • @noahvember
    @noahvember 4 месяца назад +5

    rip nixos. 4/5 board members resigned

    • @2Kaleb
      @2Kaleb 4 месяца назад

      ??

  • @dianaisnthere
    @dianaisnthere 3 месяца назад

    why is bro using microsoft edge

  • @mgord9518
    @mgord9518 4 месяца назад

    I've used Nix for the last 3 years, really liked it but I'll probably be transitioning my computers to something else after this "purge" BS

  • @RazoBeckett.
    @RazoBeckett. 5 месяцев назад +1

    Nix is cool

  • @coffee-is-power
    @coffee-is-power 4 месяца назад

    Where are nix flakes?

  • @Ebisu13o
    @Ebisu13o 4 месяца назад

    Nah, I'll stick with alpine.

  • @Dr-Zed
    @Dr-Zed 5 месяцев назад

    1. Set's up NixOS (awesome!)
    2. Throws away most NixOS benefits by using docker
    Also docker bypasses the firewall on any Linux system by applying iptables rules automatically.

    • @TechHut
      @TechHut  5 месяцев назад +4

      We learning out here

    • @Dr-Zed
      @Dr-Zed 5 месяцев назад +3

      @@TechHut once you figure out how easy it is to setup systemd units using nix you'll be mind blown :D

    • @magnificoas388
      @magnificoas388 5 месяцев назад

      @@Dr-Zed you got it. You can use Incus too with NixOS

  • @DarrellWebb537
    @DarrellWebb537 4 месяца назад

    Good OS maybe but toxic and trash devs

  • @dave7244
    @dave7244 5 месяцев назад

    Debian is the best distro. So no.

    • @HORUS-IT
      @HORUS-IT 5 месяцев назад +1

      Welcome to our comment bot overlords. At least I hope it's a bot, because then the comment could be forgiven.

    • @art3m_t1mofeev
      @art3m_t1mofeev 5 месяцев назад +2

      How is debian better for server use? You have to heavily rely on a lot of self-developed ansible playbooks to have a more-or-less reproducible setup across a fleet of servers. But once you start introducing changes to existing infrastructure, it all slowly becomes a big, uncontrollable mess. Unless you frequently deploy from scratch, but I believe that's better handled with docker containers or k8s.

    • @dave7244
      @dave7244 5 месяцев назад

      @@HORUS-IT It is more of a play on a concept called "betteridge's law of headlines". Which states that if headline / title for an article is a question typically in the form of "Should I" the answer is almost always no.

    • @HORUS-IT
      @HORUS-IT 5 месяцев назад +1

      @@dave7244 The first sentence of your OP is nonsensical in itself, it is like stating "blue is the best colour". Nothing useful can come of it, so I hoped it could be excused by some bot/AI being a troll.

    • @dave7244
      @dave7244 5 месяцев назад

      @@HORUS-IT It only doesn't make sense if you pretend that I am not partially joking. Use whatever Distro you want.
      Also I really like Blue. So to me Blue is the best colour for me.

  • @gsestream
    @gsestream 5 месяцев назад +1

    nah, debian rocks