This Program Will Make Your Nix Experience Comfy | NH The Nix Helper

  Рет қаралды 19,627

Vimjoyer

Vimjoyer

Күн бұрын

Пікірлер: 73
@matthiasbendewald1803
@matthiasbendewald1803 5 ай бұрын
Thank you, awesome to See such small but nice improvements to NixOS
@simonlauer9379
@simonlauer9379 5 ай бұрын
that thumbnail. will check the tool out the next time I procrastinate from developing looks great. i needs it
@deviantsemicolon618
@deviantsemicolon618 5 ай бұрын
YES nh is goated. I don't think I'd be able to use NixOS without it
@yash1152
@yash1152 Ай бұрын
3:30 storing the specialisation names in etc slash specialisation file; for ease of referring them. all this makes much sense now that i am watching this after switching to nixos. i watched this vid several months ago, i.e. before the switch to nixos; and i had got a bit scared lol. anyhow... yeah, learn the vanilla things first. the helpers come only later.
@einargs
@einargs 5 ай бұрын
This looks awesome! The clean part sounds really useful, and it'll be nice to replace the handful of bash scripts i have for updating my config
@delightful-ish
@delightful-ish 5 ай бұрын
using the exact same number of words to run an update does not seem like an improvement worth learning a third party tool. Telling you what was actually changed seems like a good feature that it's kinda crazy the default tools don't do.
@vimjoyer
@vimjoyer 5 ай бұрын
Sure, but I had to mention that it got a bit shorter because it's a helper program.
@cenunix
@cenunix 5 ай бұрын
I always discover a cool tool and then a week later you make a video on it 😢 I guess that’s good in a way but I wish I got more cool discovery, still enjoy watching your videos though.
@arkoprovoshaw5737
@arkoprovoshaw5737 5 ай бұрын
this good shit
@TheMotorcycleBoy-pe2eg
@TheMotorcycleBoy-pe2eg 4 ай бұрын
Good things come in small packages - this is actually pretty awesome
@0xTheDad
@0xTheDad 5 ай бұрын
Привет из России, спасибо что рассказываешь о nixos
@yash1152
@yash1152 Ай бұрын
hey so... this is not available for nix flakes commands right? like "nix develop" or "nix shell" etc..? do you know of any tool that do?
@vimjoyer
@vimjoyer Ай бұрын
There might be some tool for it, but I'm not aware of any
@wills8869
@wills8869 4 ай бұрын
I have just peed in my pants with joy 😂😂😂
@toyvo
@toyvo 5 ай бұрын
I was just thinking about writing some shell scripts to do this
@karthikeyanbalasubramanian7305
@karthikeyanbalasubramanian7305 5 ай бұрын
@0:52 after making changes to configuration.nix and running "nix flake update" and "sudo nixos-rebuild switch --flake ." im getting "error: undefined variable 'nh' "
@vimjoyer
@vimjoyer 5 ай бұрын
nh is only available on the unstable branch of nixpkgs right now, so you might be using stable. If you don't want to switch to unstable, you can take this one package from unstable or nh's GitHub repo with a flake input.
@thisisme-u9j
@thisisme-u9j 5 ай бұрын
AFAIK the option "programs.nh.enable" is only available on the unstable channle yet
@ggorg0
@ggorg0 5 ай бұрын
Have you seen flake-parts, or specifically the nixos-flake template from flake-parts? I've been strugginling with it for some time now, a tutorial video would help a lot! It provides some "nix run .#" targets similar to the ones showcased in the video, although definitely not as powerful. Oh, and will there be a tutorial on disko coming? I mean a tutorial on how to make a flake configuration that you can immediately install without any manual setup (aka partitioning) straight from the livecd.
@vimjoyer
@vimjoyer 5 ай бұрын
Yeah, I've seen flake parts, and definitely I'll make videos for it and disko
@spencerallen323
@spencerallen323 5 ай бұрын
"makes working with specializations quite a bit more pleasant" ok but like how exactly?
@vimjoyer
@vimjoyer 5 ай бұрын
It runs correct activation script by detecting current running specialization. Meaning you will stay on current active specialization after a rebuild without having to explicitly write it's name in the command.
@sr.oskar_alhos
@sr.oskar_alhos 4 ай бұрын
Hello, mate. I have been using NixOS since 17/05/24 and I already have 10 generations, but I want to just keep 3. So, my question is: *What file do I have to configure to that and what do I have to write there, please?*
@vimjoyer
@vimjoyer 4 ай бұрын
4:12 `nh clean all --keep 3`
@sr.oskar_alhos
@sr.oskar_alhos 4 ай бұрын
@@vimjoyer Firstly: *THANK YOU!* Secondly: the command did now work. The answer is: *nh: command not found* So I tried to insert the command *nh* like you did in 0:45 *environment.systemPackages = with pkgs; [* *nh* *]* BUT an errors happened about the *nh* and I had to delete it from the file. Is there no other way, Vim?
@toastielad4760
@toastielad4760 5 ай бұрын
New vimjoyer video let’s gooooo
@yash1152
@yash1152 Ай бұрын
1:44 the diff view by nvd will help a lot 4:25 5:09 umh, how to run nh so as to show difference in packages in currently active profile, vs the one which _will_ be built by current config?
@vimjoyer
@vimjoyer Ай бұрын
I don't think nh has that functionality, so you might need to make your own script
@yash1152
@yash1152 29 күн бұрын
@@vimjoyer i don't remember which part of official doc of nvd i read, but some weird form of shell invocation involving (dollar at-rate symbols) of nvd directly allows to do that.
@leonardoluz8642
@leonardoluz8642 5 ай бұрын
I am a new (and very happy) NixOS user. Your videos are really great! Thank you for your amazing work! Off to configure nh rn! Cheers!
@Ifæn21
@Ifæn21 5 ай бұрын
If it weren't for you, probably most of us wouldn't have stick out with NixOS because sometimes is hard to start, but these tools you show us really, or at least for me, made us fall in love with this distribution. Always looking forward to your videos man!
@auralluring
@auralluring 5 ай бұрын
i was thinking of writing something like this myself, so it’s nice to know that someone else has already done it lol
@jdigi78
@jdigi78 5 ай бұрын
Instead of using ./../ you can declare a path in your flake like hostPath = (self + "/hosts") and then import with (hostPath + "/module-name.nix")
@discocat2500
@discocat2500 5 ай бұрын
nh rocks.
@phanirithvij
@phanirithvij 4 ай бұрын
I use navi for things like this, other such useful tools are pet, espanso, buku. And fzf with shell integration enabled.
@ymaysernameuay1113
@ymaysernameuay1113 3 ай бұрын
What am I supposed to put in ~/dotfiles? Just the flake or the entire /etc/nixos?
@karthikeyanbalasubramanian7305
@karthikeyanbalasubramanian7305 4 ай бұрын
Don't the nh clean command deletes the generations from the boot menu
@vimjoyer
@vimjoyer 4 ай бұрын
It does 👍.
@karthikeyanbalasubramanian7305
@karthikeyanbalasubramanian7305 4 ай бұрын
@@vimjoyer I tried "nh clean all --keep 3 --dry" and its still visible in the boot menu
@TheMotorcycleBoy-pe2eg
@TheMotorcycleBoy-pe2eg 4 ай бұрын
I noticed that "nh clean all" does a better job than "nix store gc --debug" . Can nh also clear root?
@ClaireBlanch
@ClaireBlanch 5 ай бұрын
I'll try it out, seems good! Thank you!
@AppsTricksByNazakatUmrani
@AppsTricksByNazakatUmrani 3 ай бұрын
Why do we need thus nh, when we can just create a alias for the command like I have done, ns does this for me
@vimjoyer
@vimjoyer 3 ай бұрын
You can create your own alias, or you can use nh. It's simply a matter of preference. I don't want to come up with aliases, so I am using nh.
@AppsTricksByNazakatUmrani
@AppsTricksByNazakatUmrani 3 ай бұрын
@@vimjoyer right, I like the toold you mentioned nud I think, I will absolutely try it sometime
@AppsTricksByNazakatUmrani
@AppsTricksByNazakatUmrani 3 ай бұрын
​@@vimjoyer I saw this video once again and turns out, I need to use nh 😂, because I need these progress bars and beautiful UI for rebuilds as well, I will still us my alias but now that alias will point to nh os switch command not nixos rebuild switch --flake destination/#
@MiaLovesRod
@MiaLovesRod 5 ай бұрын
Thanks, it looks a great tool for my workflow, nice video, keep it 🔥
@tcurdt
@tcurdt 5 ай бұрын
Awesome. A shame nh is not in stable yet.
@starving207
@starving207 5 ай бұрын
You the BEST
@kylejamesross
@kylejamesross 5 ай бұрын
Nice I will try out this tool after work.
@___xdesna___4345
@___xdesna___4345 5 ай бұрын
Thx, comfy 😊
@Redyf
@Redyf 5 ай бұрын
that's really cool, thanks for sharing!
@TheWildHustle
@TheWildHustle 5 ай бұрын
Keep em coming Vim,
@pedromendes3257
@pedromendes3257 5 ай бұрын
amazing
@kenaibehling
@kenaibehling 5 ай бұрын
This is so good, thanks Vimjoyer!
@lunlunnnnn
@lunlunnnnn 5 ай бұрын
i can't use nh because i rely on nixos-rebuild's build-host and target-host options (which nh doesn't seem to support) for managing my server, but thanks for introducing me to nix-output-monitor! seems really neat and i added it to my nixos-rebuild wrapper script
@__viperML
@__viperML 5 ай бұрын
I plan to implement that at some point, but haven't had the time to do that. There's a github issue for it (not posting links because youtube kills comments with links)
@lunlunnnnn
@lunlunnnnn 5 ай бұрын
@@__viperML ah yeah i saw that issue earlier, would be cool if you could get that implemented :3
@HirschyKiss
@HirschyKiss 5 ай бұрын
this is life changing!
@mzakyr342
@mzakyr342 5 ай бұрын
i was wondering why some people like declarative operating system, if you use nixos could you help me answer that question?
@vimjoyer
@vimjoyer 5 ай бұрын
I don't have to worry about breaking it because I can just revert any changes. This gives me the freedom to experiment, and I can always be sure that my system will work when I need it. It's also super easy to just install all my custom configs with one command, and sync them between machines.
@mgord9518
@mgord9518 5 ай бұрын
Reproducibility is a big one. Ever install a new Arch system and then have to install all of your normal apps, configure them or install all your dotfiles, themes, etc? With Nix this doesn't have to be a thing. As you use your computer, you slowly make it to your liking, and then you can simply copy your config file to a brand new system and apply all of your modifications.
@LuizFerK
@LuizFerK 5 ай бұрын
this is so cool
@Jelster64
@Jelster64 5 ай бұрын
Looks fantastic.
@trejohnson7677
@trejohnson7677 5 ай бұрын
Damn that colored output actually hard af.
@Majiy00
@Majiy00 5 ай бұрын
Great video as always!
@wauwaukleff
@wauwaukleff 5 ай бұрын
Perfect. This is exactly what I needed.
@berkano4617
@berkano4617 5 ай бұрын
WOW!!! OMG!!! AMAZING!!! I'M REAL HUMAN FR FR!!! SOMEBODY HELP!!! RESCUE ME!!!
@FedoraSilverblue
@FedoraSilverblue 28 күн бұрын
Hello btw im too use nix os
@kokomema
@kokomema 5 ай бұрын
First
@toastielad4760
@toastielad4760 5 ай бұрын
Bahaha
@lexalexongg7444
@lexalexongg7444 5 ай бұрын
thank you for your videos I love them
Is NixOS The Best Gaming Distro | Linux Gaming Setup
8:37
Vimjoyer
Рет қаралды 31 М.
Nix(OS) Ecosystem Explained
11:19
Vimjoyer
Рет қаралды 8 М.
когда не обедаешь в школе // EVA mash
00:57
EVA mash
Рет қаралды 3,6 МЛН
Ultimate NixOS Guide | Flakes | Home-manager
15:30
Vimjoyer
Рет қаралды 158 М.
Bevy: A quick introduction
7:20
Isaac Corbrey
Рет қаралды 16 М.
Nix and NeoVim
13:38
ThePrimeTime
Рет қаралды 142 М.
Nix Home Manager Has Forever Changed My Dotfiles
10:08
DevOps Toolbox
Рет қаралды 11 М.
Customize Nix Packages | Gentoo Experience on NixOS
10:03
Vimjoyer
Рет қаралды 8 М.
NixOS Has One BIG Problem
17:48
The Linux Cast
Рет қаралды 71 М.
NixOS Secrets Management - Part 1/3
12:40
EmergentMind
Рет қаралды 8 М.