Тёмный

First look at Nix package manager 

Jake@Linux
Подписаться 7 тыс.
Просмотров 5 тыс.
50% 1

Installing and checking out the nix package manager to see what all the fuss is about.
Gitlab
gitlab.com/jped
Github
github.com/jdpedersen1
Email Me At
jake@jpedmedia.com
My Website
jpedmedia.com
Follow Me On Odysee
odysee.com/$/invite/@Jakeatli...
$100 to test a server through Vultr
www.vultr.com/?ref=9174735-8H
Support
Brave users can support me with BAT on my website or on my youtube channel

Наука

Опубликовано:

 

12 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@mAcCoLo666
@mAcCoLo666 Год назад
I like that with linux the fun is actually switching back and forth in a never ending quest, rather than actually trying to join forces and settle on something...
@JakeLinux
@JakeLinux Год назад
Hopping around d and trying new stuff is definitely one of the best things about using Linux.
@idjdbrvvskambvvv9007
@idjdbrvvskambvvv9007 Год назад
Ahhh see you at nixos jake !
@bstar777777
@bstar777777 Год назад
Nix is incredible if you do development on multiple platforms. I have started creating nix shell files for various projects. I'm able to hand those off to other devs which allows them to get non-trivial apps up and running almost instantly whether they are using Linux, MacOS or Windows (via WSL2). I've been running NixOS for about 3 months now and my perspective on how I use my system has changed so much. That said, there are still issues that I don't have clean solutions for. Running binaries can be problematic as executable locations are not standard. Same goes for scripts. I have trouble getting deb/rpm files converted and working. The Nix repo is massive, but is obviously missing some stuff that's in the AUR, so compiling and installing those projects is often a headache. Most of this is manageable with more experience and nothing is holding me back at the moment. I'm not sure if NixOS is truly immutable, but I love the fact that I can create a predictable outcome with my nix config and I can sandbox stuff before I commit to installing it. System snapshots without having to use BTRFS is fantastic as I can get maximum performance with EXT4. Good stuff.
@JakeLinux
@JakeLinux Год назад
Nix sounds like a great OS, I can't wrap my head around an OS config file though, I just need to read up more on how to install and set up nixOS and then give it a try. I doubt it will unseat void as my favorite but I would like to check it out.
@velizarbodurski6005
@velizarbodurski6005 Год назад
good upgrade is to move from nix shells to nix flakes with their ability to lock the exact versions of each instance & get really predictable build results
@joshgelias
@joshgelias 5 месяцев назад
Another banger from my boy. Thanks for another great video
@JakeLinux
@JakeLinux 5 месяцев назад
Thank you, I appreciate that, I'm.glad you enjoyed it.
@PoeLemic
@PoeLemic Год назад
Thanks for taking us through this and explaining it. I'm a Noob to Linux, but I'm trying to learn and come up to speed with what the options are. NixPM is an incredible tool that I'll use.
@JakeLinux
@JakeLinux Год назад
It is a good tool, worth learning
@LinkEX
@LinkEX Год назад
2:21 I feel kind of dumb for assuming that NixOS would depend on systemd and you couldn't make it work on Void Linux otherwise. So you simply created a symbolic link to /var/service to make the runit service manager know about Nix, and that did the trick? Getting lost from not seeing stuff like that in tutorials, let alone coming up with the right command instead, make me feel like I still have no idea about Linux at large. Maybe I also need to catch up on how runit even makes things work as opposed to systemd. That aside - this is good news for me, since combining NixOS with VoidLinux is precisely what I was aiming for to prevent myself from screwing up while fiddling around with a custom setup. So thanks for this video! (Even though I know I'm late to the party, and you're not as convinced by using Nix as I expected you'd be.)
@JakeLinux
@JakeLinux Год назад
Glad it could help you out. Nix is cool, I'm just not sold on the entire NixOS for me, it is definitely viable for many people though.
@LinkEX
@LinkEX Год назад
@@JakeLinux You definitely did! Do you already have personal use cases for Nix in mind? E.g. integrating Nix in one of your other Void Linux setups, like the one with Herbstluft? # _On system configuration using package managers and dotfiles_ That's what I tried to make work. But, embarrassingly, couldn't even figure out where to place the respective files and folders to replicate your setup. (You kindly provided an install script to get around that, though as it's currently broken you rightfully discouraged using it.) I'm still trying to get more familiar with FHS and dotfiles. I've seen countless github repos like yours, but I've never encountered a readme that explains which files go where. It seems to be common knowledge among "Linux natives". Makes me feel like something didn't click for me that's just second nature to those who do some CLI magic to customize their setup. And so, while I'm still at that newbie state, fiddling around with two package managers simultaneously didn't seem like a good idea - even though I grew quite fond of Void (thanks to you) and Nix seemed like just the kind of tool to get a secure environment for tinkering and "one source of truth" with the config file. # _My intended Learning path_ So I concluded it's probably a better idea to (a) start with 'vanilla system tinkering' on Void OS, and learning how to handle dotfiles. (b) do a fresh install of NixOS and learn how to work with it 'natively'. In that regard, your NixOS + Hyprland experiment is actually just what I was looking for at the time, since I screwed up my Void Linux setup, hehe. # _Wayland with Void_ On a semi-related note: Have you any plans of doing a Void Linux Wayland setup? As most Linux veterans, you seem more at home with X11. But as Qtile supports both display server protocols, I guess you would at least have the opportunity to work with your second favorite window manager, haha. Though I reckon you have other ideas and requests higher up your list that build on your main setup, rather than starting more side projects (unless I missed a video where you tinkered with Wayland and Void) Thanks for your time, and have a nice rest of the week!
@zoinkshaggy
@zoinkshaggy Год назад
Good video. I may have to try this out. I currently have brave installed through flatpak.
@JakeLinux
@JakeLinux Год назад
I am switching from my xdeb version to the nix version.
@sofiaknyazeva
@sofiaknyazeva Год назад
Nix seems a very nice pkgmgr for development purpose. To install packages a user don't require administrator privilege (e.g. if pkg installation path is in home directory) btw when you query packages, I guess its a better idea to keep the list on local system, e.g. nix-env -qaP > nixpkgs and then you can do cat nixpkgs | grep which will be a lot faster. Of course, you need keep it up to date as well, and a cron job (for example runs in every 3 days) should be good. One thing is concerning though is that if the user don't clean nix packages directory regularly it can create overhead, for instance if they have small disk space and they test a lot of programs. Nice video and have a great weekend, you too!
@JakeLinux
@JakeLinux Год назад
I thought about that, how I could speed up package search but I don't want to store everything locally either, so at the moment I will sacrifice speed for space.
@C6438911
@C6438911 Год назад
Recently I've switched to Rocky linux 9.1 and also installed the nix package manager. It is awesome, installed a few programs that weren´t in the default distribution repo's. Nice video, thank you. hope to see the video about updating nix pkgs.
@JakeLinux
@JakeLinux Год назад
Thanks, was planning on doing it today but, mother's day, so it will be out in the next few days.
@wyfyj
@wyfyj Год назад
It is one of my favorite. I knew you'd check it out eventually. I think you'd like the NixOS config file too
@JakeLinux
@JakeLinux Год назад
That is what is interesting to me, the fact that my OS would have a config file, I don't have a void config file, I get the purpose behind it, it just takes a bit to wrap my head around that.
@wyfyj
@wyfyj Год назад
@@JakeLinux That's what took me a bit too. And then understanding what a flake is. I felt like at the time, for me to learn all about that I had to drink the "kool-aid" if you will. And watch several hour long videos produced by the Nix team. Some of the documentation is lacking. But that is what happens when I compare everything to Gentoo and Arch. I think you will find it interesting and refreshing. It's very cool and niche. But I don't think it makes the OS more secure like some of the users spout. But hey, to each their own. It's a great bit of software, and works.
@marco4lin
@marco4lin Год назад
I suggest to try also Guix package manager, i use it with home manager to manage all softwares for my user(s).
@JakeLinux
@JakeLinux Год назад
I will look into that
@Karlzzzy
@Karlzzzy Год назад
Hello there Jake, I have no idea about Laptop battery life on linux.Some says that on Linux cpu will run unoptimized conditions,so battery life will suks.Some says that Auto-cpufreq,tlp,powertop,etc.They also say that with tlp,will lose turboboost.Should I use those things?I need your opinions on those tools.
@JakeLinux
@JakeLinux Год назад
Battery life on Linux is not great sometimes, I have noticed that my Lenovo with Intel is better on batt life than my HP with amd was, but that is about it, neither one lasts as long as when I ran windows. Tlp and power top have helped with that slightly and I have not noticed any issues, overall since my laptop is plugged in most of the time I have not put these to use too much, but when I have I will say the gain was minimal with the way I run my machine.
@Karlzzzy
@Karlzzzy Год назад
@@JakeLinux Thanks Jake,I see clearly now.I feel bad too with those tools,heh heh.Anyways,I hope you'll made a deep dive video about nix.
@etterathe
@etterathe Год назад
Hello Jake, which package manager do you prefer more xbps or nix?
@JakeLinux
@JakeLinux Год назад
At the moment I prefer xbps to all other package managers I have used, however, nix is pretty cool
@youtubeaccount1152
@youtubeaccount1152 5 месяцев назад
Nix version now is 2.18.1 while the one in void repo is 2.11.0 How should I update this
@JakeLinux
@JakeLinux 5 месяцев назад
Try the Install process from the nix website using curl
@youtubeaccount1152
@youtubeaccount1152 5 месяцев назад
@@JakeLinux I can do that but why void doesn't update the package
@andbenn
@andbenn Год назад
This looks promising for void-packages gaps. Say a new brave arrives. 1.51.114 (which happens to be the current version, so Nix is a couple days behind). How would that update arrive?
@JakeLinux
@JakeLinux Год назад
Aaahhhhh! Trying to sneak a preview of my next video. I will do a video hopefully tomorrow (no promises) on how to update packages.
@drishalballaney6590
@drishalballaney6590 Год назад
you can probably use something like flatpak for browsers if you are soo keen on getting the absolute latest browser version
@C6438911
@C6438911 Год назад
@@drishalballaney6590 I think he meant update packages in general and used a browser as example.
@drishalballaney6590
@drishalballaney6590 Год назад
@@C6438911 actually to properly manage packages the best way to deal with this is to use home manager and flakes
@andbenn
@andbenn Год назад
@@drishalballaney6590I prefer to have my browser binaries come straight from the source and/or some distro level review. Not a huge fan of user-made packages. Eagerly waiting until browser vendors make their own flatpaks for us.
@itsfish8672
@itsfish8672 Год назад
Jake if i ever leave arch, i would goto Nixos an the packages in a heart beat. Void seems more useable with Nix, GVJ.
@JakeLinux
@JakeLinux Год назад
TY, I am curious to try out nixOS officially now and see what all the fuss is about.
@donaldmickunas8552
@donaldmickunas8552 Год назад
@@JakeLinux You might play with nixOS but you'll return to your true love, Void Linux. 😉
@JakeLinux
@JakeLinux Год назад
@@donaldmickunas8552 this is probably true
@scottdrumm6901
@scottdrumm6901 Год назад
Just wait till you dig into NixOS. I’m pleased by how they define immutability. My fear of breaking my system by tinkering is gone.
@JakeLinux
@JakeLinux Год назад
I'm working on it, but not there yet.
@donaldmickunas8552
@donaldmickunas8552 Год назад
I don't understand the issue with installing Brave. I simply installed the flatpak version. Done
@JakeLinux
@JakeLinux Год назад
Well there are people out there like me who don't like flatpak, snaps, or app images. No particular reason, just prefer to not use them.
@donaldmickunas8552
@donaldmickunas8552 Год назад
@@JakeLinux I didn't know that. It's all about personal taste and preferences anyway. Cool. I'll try the nix package manager when I get the chance. Sounds interesting though I probably will create aliases for some of those commands.
@andbenn
@andbenn Год назад
Is that Brave flatpak done by the Brave team or some contributor?
@MelroyvandenBerg
@MelroyvandenBerg 5 месяцев назад
I don't want brave. It's chrome based
@JakeLinux
@JakeLinux 5 месяцев назад
Ok, brave is a good Browser but I hear what you're saying.
@scottb4029
@scottb4029 Год назад
Cool video. I went back to herbstluftwm .
@JakeLinux
@JakeLinux Год назад
I am still in dk at the moment, I am missing Herbie though. May be back home before too much longer.
@LostInTheStack
@LostInTheStack Год назад
@JakeLinux Herbie! I like it. I'm finally trying Berry and like it so far but yes, herbstluftwm is definitely home.
Далее
NixOS: Everything Everywhere All At Once
15:10
Просмотров 285 тыс.
I was WRONG! This is the BEST Package Manager.
10:25
Просмотров 136 тыс.
NixOS - How the store and packages work
18:50
Просмотров 15 тыс.
NixOS is Mindblowing
12:02
Просмотров 680 тыс.
Bash is Bloated!
11:48
Просмотров 141 тыс.
Getting Started with Nix
25:49
Просмотров 65 тыс.
Nix - The Best Package Manager
13:04
Просмотров 149 тыс.
Void Linux and why it is home
12:54
Просмотров 73 тыс.
Building a Void-src template for Brave
24:51
Просмотров 1,2 тыс.
NixOS: Learning to build (aND dESTROY!) with Nix
29:56
iPhone 15 Pro в реальной жизни
24:07
Просмотров 417 тыс.