NixOS Introduction - Home manager

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • 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/

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

  • @elys7563
    @elys7563 Год назад +2

    Finally someone making sane tutorials. It was really helpful.
    Also can make a vide about how to setup window manager(hyprland) with nixos.

  • @grawlixes
    @grawlixes Год назад +1

    the information density of your videos is just right. thank you for this!

  • @skelebro9999
    @skelebro9999 Год назад +1

    One of the best tutorial I've seen yet. Keep it up!

  • @patrickprucha5522
    @patrickprucha5522 Год назад +1

    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!👍

  • @that_leaflet
    @that_leaflet Год назад +1

    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.

    • @liyangau
      @liyangau  Год назад +2

      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.

  • @dillon4248
    @dillon4248 Год назад

    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.

  • @Redyf
    @Redyf Год назад +2

    I can't explain how useful this video is, thank you so much. Keep up the amazing work 🙂

  • @flawless3055
    @flawless3055 Год назад +1

    Nice and clean tutorial 🙂👍

  • @jedsol-og9fc
    @jedsol-og9fc 10 месяцев назад

    wow nice thank you

  • @sethbuchanan6937
    @sethbuchanan6937 Год назад

    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.

  • @g-luu
    @g-luu Год назад

    Top notch explaination. Thanks got yourself a sub.

  • @JudeDominicEstrellado
    @JudeDominicEstrellado 11 месяцев назад

    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..

  • @orebi1914
    @orebi1914 11 месяцев назад

    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!

  • @svd19xx
    @svd19xx Год назад +1

    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

    • @liyangau
      @liyangau  Год назад

      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)

    • @svd19xx
      @svd19xx Год назад

      @@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.

  • @unclefester9113
    @unclefester9113 7 месяцев назад

    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.

    • @liyangau
      @liyangau  7 месяцев назад

      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.

  • @Paginski
    @Paginski Год назад

    Does standalone installation have any advantages? I find having one command to both system and user configs easier, is it worse?

    • @liyangau
      @liyangau  Год назад

      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.

  • @zyxyuv1650
    @zyxyuv1650 Год назад

    environment.shellAliases = { "mi" = "micro"; }