• rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    29 days ago

    NixOS: How do I install OBS?

    edit /etc/nixos/configuration.nix

    locate environment.systemPackages = with pkgs; [

    and add

    linuxPackages.v4l2loopback
    (wrapOBS {
      plugins = with pkgs.obs-studio-plugins; [
        obs-backgroundremoval
        obs-shaderfilter
        obs-vintage-filter
        
      ];
    })
    

    Then you need to install the kernel driver

    you can find the instructions here:

    https://nixos.wiki/wiki/OBS_Studio

    make sure you follow the part about boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];

    if you want to use the virtual cam driver.

    You may find out that you want to install this in home-manager or flakes instead, but those are novels themselves.

    edit: ohh yeah almost forgot run

    sudo nixos-rebuild switch

    after you edit the configs to install

    NixOS: How do I update the version of OBS after it’s installed?

    sudo nix-channel --update

    sudo nixos-rebuild switch

    If it breaks, the errors are mostly unhelpful, you need to poke around and make educated guesses.

    If it bricks you can go back to the previous version in grub by selecting the second to the top entry

    make sure you garbage collect every now and then or the app store gets huge.

    • floofloof@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      29 days ago

      I’ve been using Linux for nearly 30 years and I recently noped out of NixOS. It’s a great concept, but I’m old and I don’t want to spend the rest of my days configuring stuff just to get to where I would be in 30 minutes on a less rigorously designed distro.

      • iopq@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        29 days ago

        That is, until your distro releases an update and you’re like “what do you mean the update failed? So does that mean the update script rolled the changes back?” and then you find out your entire system is in a half updated state and you need to clean install

        • rumba@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          28 days ago

          until your distro releases

          That’s saved my ass soooo many times. I now screw with X or Wayland to my hearts content, change 2-3-10 things at a time. ohh something didn’t work? reboot!

              • rumba@lemmy.zip
                link
                fedilink
                English
                arrow-up
                0
                ·
                28 days ago

                It’s not even fully immutable, but it has a lot of the protections of it. The declaritive part is pretty hot and the package system is expansive and extremely safe.

                it’s also really nice to be able to commit new changes without rebooting.

                  • rumba@lemmy.zip
                    link
                    fedilink
                    English
                    arrow-up
                    0
                    ·
                    27 days ago

                    Not everything in the config paths are in the store.

                    None of the users are in the store

                    Any users can run arbitrary binaries as long as they’re not dynamically linked.

                    Root can permanently add and remove arbitrary stuff to/from the store at run time.

                    It’s pretty good in a lot of ways you can’t modify hosts and you can’t throw stuff into cron, but a great deal of Nixos is mutable.

        • NotSteve_@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          29 days ago

          I just keep my home folder backed up safely. The software installed doesn’t really matter to me since I can redownload things pretty quickly

              • iopq@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                28 days ago

                And then you’ll wonder why the game that used to run in Wine doesn’t run anymore

                Not only that, programs just break by themselves. LocalSend broke because some deps broke. I use versions that I’ve verified to work. Being able to revert and just use my computer is a godsend.