NixOS dual booting and UEFI

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In part 2 of NixOS I'll show you how to dual boot and install NixOS on a UEFI system through the configuration file. In this example I've set up NixOS alongside an existing Debian installation.
    Don't forget to check out Part 1 if you haven't seen it : • NixOS: How it works an...
    Get NixOS here : www.nixos.org
    Support my channel on Patreon : / doriandotslash
    The code for the Grub configuration settings:
    boot.loader.efi.canTouchEfiVariables = true;
    boot.loader.grub.enable = true;
    boot.loader.grub.devices = [ "nodev" ];
    boot.loader.grub.efiInstallAsRemovable = true;
    boot.loader.grub.efiSupport = true;
    boot.loader.grub.useOSProber = true;

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

  • @davidvogel2387
    @davidvogel2387 4 года назад +9

    Great presentation! Now that we have Nixos up and running, please consider a video on Home Manager

    • @Doriandotslash
      @Doriandotslash  4 года назад +4

      Thank you David! I have heard of Home Manager a few times now and I'll be trying it out for sure. Cheers!

  • @azymohliad
    @azymohliad 4 года назад +2

    Thank you! Looking forward to the next video about package management!

  • @Amridell
    @Amridell 4 года назад +5

    Just got NixOS working on a UEFI system the other day. Good thing to note: Many UEFI boards will recognize USBs in BIOS mode first, and you may need to change it in the BIOS/UEFI settings to boot from UEFI and not "legacy boot".

    • @Doriandotslash
      @Doriandotslash  4 года назад

      Good point. Although I haven't had this happen on any of my systems, it could be possible for sure. Always best to check this.

  • @Woolean
    @Woolean 3 года назад +2

    Thanks man, i've been struggling with the Grub all day long and you helped me.
    I fking love this OS tho, i love a good challenge

  • @johanb.7869
    @johanb.7869 4 года назад +4

    A master at work.

  • @explicitlynotboundby
    @explicitlynotboundby 4 года назад +1

    Thanks to these videos I was able to install NixOS dual booting with Xubuntu easily.

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

    This video was definitely worth my subscription

  • @Appalling68
    @Appalling68 4 года назад

    I'm SO GLAD I found your channel.

  • @aaronryder4008
    @aaronryder4008 4 года назад

    I feel kind of pissed that i discovered your channel so late. Awesome work dude

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

    Your voice is so good :3

  • @vim449
    @vim449 3 года назад +1

    For anyone having problems, make sure that you wrap "nodev" in square brackets and pluralize device. If you don't, it causes an issue where it ignores the canTouchEfiVariables and you will not have actual dual boot,

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

      so you mean boot.loader.efi.canTouchEfiVariables = [ "nodev" ];

  • @schissgring
    @schissgring 4 года назад +1

    What would you recommend to us for a dual booting with windows, NixOS or Fedora Silverblue?
    Or should the question be is it possible to dualboot with Windows?
    At the moment i have Mint debbie, but i what to try something different, that also works fine with games.
    If the dual boot is running i would like to try and install Windows on a WM with GPU pass trough, and if that works i will get rid of the standalone Windows..

    • @davidak_de
      @davidak_de 4 года назад

      the comments on the other video said nixos works with windows in dual boot
      steam with proton works great on nixos and let you play many games www.protondb.com/

  • @northof-62
    @northof-62 4 года назад

    Thx mate. Good stuff.

  • @reisen1553
    @reisen1553 4 года назад

    Thank you for this excellent video.

  • @SoulRollerFIN
    @SoulRollerFIN 4 года назад +1

    NixOS seems like a sensible system to have. Can it run all other apps other systems do? I have a working Arch system, but somethings are giving me headache and I feel like starting fresh. Might as well try a new system, right? NixOS seems like a noob-friendly system once you get it set up and booting.

    • @Doriandotslash
      @Doriandotslash  4 года назад +1

      Most apps are available yes. It can also run Flatpaks which opens up more options. But if you really need to, you can also add or build a missing package as well. They give you all the instructions on how to do it on their website.

    • @Atemu12
      @Atemu12 4 года назад

      Nixpkgs is the second largest software repository there is, only the AUR is larger (and not by much).
      I'd recommend you to plug in all the packages that are important to you into nixos.org/nixos/packages.html, especially your AUR packages as those are generally the least likely to be found in other repositories (`pacman -Qem`).
      If something's not packaged yet, feel free to open a packaging request in the Nixpkgs issue tracker.
      I would *not* describe NixOS as noob friendly though, quite the opposite is the case. You might be getting a slightly wrong picture here as Dorian did a great job explaining how to use NixOS in (relatively) simple terms ;)
      Since you're comfortable with using Arch though, you shouldn't have too much trouble with NixOS. Just keep in mind that many things are very different and will need some getting used to. It's totally worth it though!

  • @twb0109
    @twb0109 3 года назад

    Really want more NixOS videos XD

    • @Doriandotslash
      @Doriandotslash  3 года назад +1

      Update is due VERY soon ;)

    • @twb0109
      @twb0109 3 года назад

      @@Doriandotslash YES! Probably going to run NixOS in some months

  • @fuseteam
    @fuseteam 3 года назад

    wonder if you can chroot into nix and change the password in the live enviroment

  • @boubert
    @boubert 3 года назад

    Great video!
    This gave an error with me, boot.loader.grub.efiInstallAsRemovable = true Made it false and it runs fine now.
    Debian 10 XFCE and Nixos with I3 and xfce.
    boot.loader.efi.canTouchEfiVariables and boot.loader.grub.efiInstallAsRemovable somehow? can't be both true.
    Thanx

  • @77seban
    @77seban 4 года назад

    Hi I have a windows 10 and only 2 partition ...I would like to install linux but I dont have boot, esp partition. I can create this partition but this partition can be after winodw 10 partition or should be before win10 partition. Thanks

    • @Doriandotslash
      @Doriandotslash  4 года назад +1

      So you're saying your system does not support UEFI or is it installed in Legacy mode? Do you know if your partition table is MBR or GPT?

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

    A better way to give yourself root is: sudo login -f root