Continue our journey with NixOS. In today's video I will show you how to use Home manager as NixOS module or in standalone mode. Blog address: tech.aufomm.com/
Nicely done!! The video is very informative. I need to rerun it a couple of times, in certain areas. That's because there is a lot of stuff you are covering. Thank You very much!👍
Great tutorial, I followed the written version. I spent so long just trying to get home manager to work, but to no avail (I installed it as a nix module but was trying to use the "home-manager" command, which didn't work, was trying to use the .config/home-manager). But your guide actually showed how to correctly use the nix module version.
Glad it helped! I was stuck with home-manger cli and nixos module too... IMO the official doc did not make this part clear enough so I decided to write this blog post and made a video.
Incredible video, I would recommend keeping your editor and blog post in frame when you were copy/pasting or at least keeping them each up for a couple seconds before switching over. Snapping back and forth is great when you're editing but can be hard to follow in a video.
Your videos are awesome! Keep them up! Do you think that you could make one about installing Hyprland with wayland? That will be great! Love the way You instruct! Thank You in advance!
Good tutorial. Thanks. In the Home Manager Manual for standalone installation: $ nix-channel --add ..... and for NixOS module: sudo nix-channel --add .... And you add channel as root for both! Why? Is there no difference? The docku of NixOS has some bugs, for example: When you do standalone HM, you have to re-login user
Thank you for pointing out the difference between official doc and my blog post about standalone mode installation. This is one of the issues I encountered when I tried to follow the official doc. You can try this for yourself and see if you are getting the same result. In short, If you do not use sudo to add home-manager channels, nix-shell '' -A install command won't work. Example (I don't want hyperlink in the comment section so I remove it): [fomm@nixos:~]$ nix-channel --add xxx home-manager nix-channel --update this derivation will be built: /nix/store/d5jpizbvq576fn7c28h6dgsngk7s5f9k-home-manager.drv building '/nix/store/d5jpizbvq576fn7c28h6dgsngk7s5f9k-home-manager.drv'... unpacking channels... [fomm@nixos:~]$ nix-shell '' -A install error: file 'home-manager' was not found in the Nix search path (add it using $NIX_PATH or -I)
@@liyangau I have the same error. Solution: Try to do as in the doc and as you described, BUT do a re-login or reboot and then $ nix-shell '' -A install As I said before, unfortunately there are a lot of mistakes in the official documentation.
I see the benefit. But - I'll never get this granular for my home dual boot system. I fail to comprehend why there isn't simply a package repository or "store" to install software. Configuration files I can handle. This stuff - is for programmers, system maintainers, IT professionals.
Honestly I don't use NixOS myself but I am heavily rely on Nix as package manager to mange most of the applications I use. This tool is so important and it makes my life so much easier when I need to have a consistent environment across MacOS and different Linux distributions.
If you don't want to build system config and application config at the same time, you need to use standalone mode. Personally I use HM as NixOS module.
Finally someone making sane tutorials. It was really helpful.
Also can make a vide about how to setup window manager(hyprland) with nixos.
the information density of your videos is just right. thank you for this!
One of the best tutorial I've seen yet. Keep it up!
Nicely done!! The video is very informative. I need to rerun it a couple of times, in certain areas. That's because there is a lot of stuff you are covering. Thank You very much!👍
Great tutorial, I followed the written version. I spent so long just trying to get home manager to work, but to no avail (I installed it as a nix module but was trying to use the "home-manager" command, which didn't work, was trying to use the .config/home-manager). But your guide actually showed how to correctly use the nix module version.
Glad it helped! I was stuck with home-manger cli and nixos module too... IMO the official doc did not make this part clear enough so I decided to write this blog post and made a video.
Wow great stuff. I was struggling to figure it out from the docs and other tutorials. Thank you! I hope more content is on the way. Subscribed.
I can't explain how useful this video is, thank you so much. Keep up the amazing work 🙂
Nice and clean tutorial 🙂👍
wow nice thank you
Incredible video, I would recommend keeping your editor and blog post in frame when you were copy/pasting or at least keeping them each up for a couple seconds before switching over. Snapping back and forth is great when you're editing but can be hard to follow in a video.
Top notch explaination. Thanks got yourself a sub.
Hi great and intuitive video. can you also do a video on extending or configuring window managers in nixos.. like DWM and its patches maybe..
Your videos are awesome! Keep them up! Do you think that you could make one about installing Hyprland with wayland? That will be great! Love the way You instruct! Thank You in advance!
Good tutorial. Thanks.
In the Home Manager Manual for standalone installation:
$ nix-channel --add .....
and for NixOS module:
sudo nix-channel --add ....
And you add channel as root for both! Why? Is there no difference?
The docku of NixOS has some bugs, for example:
When you do standalone HM, you have to re-login user
Thank you for pointing out the difference between official doc and my blog post about standalone mode installation. This is one of the issues I encountered when I tried to follow the official doc. You can try this for yourself and see if you are getting the same result.
In short, If you do not use sudo to add home-manager channels, nix-shell '' -A install command won't work.
Example (I don't want hyperlink in the comment section so I remove it):
[fomm@nixos:~]$ nix-channel --add xxx home-manager
nix-channel --update
this derivation will be built:
/nix/store/d5jpizbvq576fn7c28h6dgsngk7s5f9k-home-manager.drv
building '/nix/store/d5jpizbvq576fn7c28h6dgsngk7s5f9k-home-manager.drv'...
unpacking channels...
[fomm@nixos:~]$ nix-shell '' -A install
error: file 'home-manager' was not found in the Nix search path (add it using $NIX_PATH or -I)
@@liyangau I have the same error.
Solution:
Try to do as in the doc and as you described,
BUT do a re-login or reboot and then $ nix-shell '' -A install
As I said before, unfortunately there are a lot of mistakes in the official documentation.
I see the benefit. But - I'll never get this granular for my home dual boot system. I fail to comprehend why there isn't simply a package repository or "store" to install software. Configuration files I can handle. This stuff - is for programmers, system maintainers, IT professionals.
Honestly I don't use NixOS myself but I am heavily rely on Nix as package manager to mange most of the applications I use. This tool is so important and it makes my life so much easier when I need to have a consistent environment across MacOS and different Linux distributions.
Does standalone installation have any advantages? I find having one command to both system and user configs easier, is it worse?
If you don't want to build system config and application config at the same time, you need to use standalone mode. Personally I use HM as NixOS module.
environment.shellAliases = { "mi" = "micro"; }