Build Your Own NixOS Installer ISO

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • Discord server: / discord
    Donations: ko-fi.com/vimjoyer
    Code from the video: github.com/vimjoyer/custom-in...
  • Věda a technologie

Komentáře • 38

  • @hakovatube
    @hakovatube Před 2 měsíci +51

    Thank you for filling the gap of NixOS not having an easy to understand documentation with your tutorial videos. For those of us who are not programmers, your videos provide a working system to start from and learn with experimentation.

  • @GoldenBeholden
    @GoldenBeholden Před 2 měsíci +32

    I thought this would be on the far end of diminishing returns when it comes to productivity, but I had no idea it is so easy to do. Thanks for sharing.

    • @vimjoyer
      @vimjoyer  Před 2 měsíci +1

      You can do it in less than 3 minutes 😁

  • @meisteravinderweise4893
    @meisteravinderweise4893 Před 2 měsíci +13

    I think the best part of this is not an installer, but a general portable live session. You can have your normal fully working NixOS on a USB. Now just partition the USB into a NixOS partition and a storage partition and you even have permanent storage... assuming you figure out how to properly boot the entire thing... that's the part where I'm stuck on rn

  • @xaviduds
    @xaviduds Před 2 měsíci +11

    next video: declare your linux kernel with nix language

  • @das_9677
    @das_9677 Před 2 měsíci +5

    I've actually been trying to figure this out for weeks!
    Just as a suggestion: time stamps would be really convenient, especially if parts are intended to be skipped

  • @wojownikwody1804
    @wojownikwody1804 Před 2 měsíci +1

    Learning all this stuff was a tough process, but it was well worth it. First, switching from Windows/MacOS to Linux, then learning and configuring window managers, neovim, tmux etc. and finally being able to store all that work in a repo and replicate anywhere I want is simply priceless. When I look back at times where I was using Windows and VS Code, I can see how SLOW I was with my work. This works for me mostly because I have a lot of computers and having a single source of truth in GIT for all of them is a blessing, seriously. Fun fact: investing all this time and effort helped me to actually save tons of time now and do more things that I like outside tech.
    P.S - NixOS documentation SUCKS big time. This system is amazing, but seriously... having a proper documentation would help A LOT. I almost gave up a few times. :))

  • @sfuentesojeda
    @sfuentesojeda Před 2 měsíci +5

    I was really needing something like this! thank you for everything and congrats for reaching 10k!

  • @stimpson_
    @stimpson_ Před 2 měsíci +3

    I'm planning on installing NixOS after getting comfortable in a VM. Your content has been so helpful and I look forward to seeing more!

  • @Grizzlywer
    @Grizzlywer Před 2 měsíci +4

    You are the nix goat

  • @Anonymous4045
    @Anonymous4045 Před 2 měsíci +3

    Just had to do this to get some proprietary realtek wifi drivers during install, useful stuff.

  • @unknown-otter
    @unknown-otter Před 2 měsíci +1

    Thank you, once again! When you started these videos, I mostly liked them and wrote something for the algorithm but didn't actually watched most them, haha
    Switched to nixos in early January and never looking back, I think!

  • @notgate2624
    @notgate2624 Před 2 měsíci +5

    hm I expected this to talk about how to create an iso out of your current configuration

    • @vimjoyer
      @vimjoyer  Před 2 měsíci

      Just import your config modules in your newly created configuration.nix. Or if your main configuration.nix is monolithic, you can straight up copy all the options you need to it.

  • @alexstone691
    @alexstone691 Před 2 měsíci +1

    I may try this to build a minimal rescue iso file

  • @catto-from-heaven
    @catto-from-heaven Před 2 měsíci +1

    Keep it up man

  • @flashgnash
    @flashgnash Před 2 měsíci +3

    Is there any way to create a custom installer that will install the system already with your configuration?
    As far as I'm aware this method only installs this configuration to the live boot environment, I would like to make the installer use my config for the final system rather than me have to manually clone it down and rebuild after installation

    • @vimjoyer
      @vimjoyer  Před 2 měsíci

      The official NixOS Calamares installer is essentially Calamares with a couple of patches. So you can create a derivation and patch it with your custom installation steps

  • @Robin_Goodfellow
    @Robin_Goodfellow Před 2 měsíci +2

    Maybe I'll try it this way next time. The regular installer didn't generate any boot entries when I first installed NixOS, so it didn't boot at all. I had to manually chroot the new installation and nixos-rebuild switch to get the first boot entry.

    • @federicodamian4039
      @federicodamian4039 Před 2 měsíci

      If `nixos-install` fails you can just run it again, `nixos-install` is more or less a simple wrapper around chrooting and running `nixos-rebuild`. In fact, you can run it as many times as you need, even after changing the system configuration.

  • @oserodal2702
    @oserodal2702 Před 2 měsíci +2

    Hello and thanks for the content. Can you do a full video on disko (as you've referenced in one of your earlier videos)?

    • @vimjoyer
      @vimjoyer  Před 2 měsíci +1

      Of course, but I want to make some other videos that I promised earlier first

  • @kirillschirov1322
    @kirillschirov1322 Před 2 měsíci +2

    Where i can look your color theme, it's so beautiful...I want the same thing, It's not just a gruvbox, is it?

  • @picklechill
    @picklechill Před 2 měsíci +4

    Nice

  • @SP-kc3fq
    @SP-kc3fq Před 2 měsíci +1

    No idea it was this easy lol. By any chance, do you have any reference to make an iso image with the entire desktop environment? Im trying to copy my set up from a laptop to another pc but i dont wanna reconfigure everything

    • @vimjoyer
      @vimjoyer  Před 2 měsíci

      Unless you have configured your DE with nix, moving it to a new host would probably be just as problematic as on any other distro.

    • @SP-kc3fq
      @SP-kc3fq Před 2 měsíci

      @vimjoyer this is probably a dumb question, but by nix, u mean nixos right? Cuz that's wut I'm using

  • @Orphan-Source
    @Orphan-Source Před 2 měsíci +1

    how did you figure out nixos-generators? i was struggling with this forever. Where is the tutorial???

    • @vimjoyer
      @vimjoyer  Před 2 měsíci +1

      Bits and pieces of documentation everywhere, just like with everything NixOS-related

    • @Orphan-Source
      @Orphan-Source Před měsícem

      @@vimjoyer we need a docs-manager at this point

  • @user-rj5kt3ft8w
    @user-rj5kt3ft8w Před 14 dny +1

    slavic detected

  • @hakovatube
    @hakovatube Před 2 měsíci +2

    While following this guide, I hit a roadblock that I cannot overcome. In the initial configuration.nix I had both "networking.wireless.enable = true;" AND "networking.networkmanager.enable = true;" settings. Creating the ISO image failed with the error "Failed assertions: You can not use networking.networkmanager with networking.wireless. Except if you mark some interfaces as unmanaged by NetworkManager." Since then, I deleted the "networking.wireless.enable = true;" setting from the relevant configuration.nix file but cannot get rid of the error message when creating the ISO image. Is there some cache that I need to clean? What am I missing?

    • @vimjoyer
      @vimjoyer  Před 2 měsíci

      You could try `--option eval-cache=false`

    • @hakovatube
      @hakovatube Před 2 měsíci

      ​@@vimjoyerThank you so much for the response!. Unfortunately it didn't work and gave me the following error: “/nix/store/26rq7a86pcxqgr0kc3ivmwm6ns3v4668-nixos-generators-1.8.0/bin/.nixos-generate-wrapped: line 83: $3: unbound variable”. I am not sure what it means, but I don't want to occupy your space and time for troubleshooting with me. Is Discord the main discussion space for Nixos or is there an alternative that is as or more active?

    • @hakovatube
      @hakovatube Před 2 měsíci

      @@vimjoyer Thank you for the response! Unfortunately it didn't work with an obscure error message: “/nix/store/26rq7a86pcxqgr0kc3ivmwm6ns3v4668-nixos-generators-1.8.0/bin/.nixos-generate-wrapped: line 83: $3: unbound variable”. I will look for help in forums and other venues to figure this out. Thanks again!

  • @infernocop31
    @infernocop31 Před 2 měsíci +2

    What about a tutorial on how to package things for nixos?

    • @vimjoyer
      @vimjoyer  Před 2 měsíci +1

      I have a video about derivations, but it's getting old. I'll probably remake it later