this post was submitted on 19 May 2025
334 points (94.7% liked)

linuxmemes

25031 readers
1743 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] [email protected] 34 points 3 days ago* (last edited 3 days ago) (3 children)

    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.

    [–] [email protected] 1 points 3 days ago

    It's actually easier than that, but I know what you mean. Yesterday I installed arch on a new laptop, after two years of NixOS. I think I might swich the desktop too.

    [–] [email protected] 17 points 3 days ago (1 children)

    Came here to say NixOS too. The idea behind it is neat but the implementation is the most obtuse Rube Goldberg machine I can imagine.

    [–] [email protected] 3 points 3 days ago (1 children)

    For me, it felt like old times. Bringing up slackware, then bringing up redhat, then fighting in laptop Nvidia and AMD drivers. I was scary how much of my existing knowledge was useless though. If you install it by the book, you can't even run a linked library.

    I spent a couple of hundred hours learning how to configure it. I've been running it for around a year and a half. I'm still sub-par. First time around, 23.11, I installed home-manager as a flake. I got it up and running in a couple of hours, but managed to wedge myself when it was time for updates. I had written just enough weird nix language to make my configs not work in 24.05. I could get the OS to come up, but not home-manager. I started fresh, taking old configs item by item and re-implemented them via the docs fresh.

    When I got a new laptop, I booted off the USB, copied my home folder and grabbed configuration.nix and home.nix and it all just magically worked.

    That said, NGL, 25.05 has me a bit worried :) But at least I don't have to fight Wayland this time.

    [–] [email protected] 4 points 3 days ago (1 children)

    That's way, way more time and effort than I'm willing to waste on getting my computer up and running, and I still fail to see any real benefit over copying my Arch home folder and reinstalling what I need from Pacman/AUR. If I had to set up dozens of computers at a time then yes, absolutely, Nix would be perfect!

    [–] [email protected] 2 points 3 days ago
    [–] [email protected] 39 points 3 days ago* (last edited 3 days ago) (1 children)

    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.

    [–] [email protected] 8 points 3 days ago (6 children)

    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

    [–] [email protected] 4 points 2 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!

    [–] [email protected] 2 points 3 days ago

    Is this one of those Arch things that I'm too immutable to relate to?

    [–] [email protected] 5 points 3 days ago (1 children)

    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

    [–] [email protected] 2 points 2 days ago (1 children)

    But how do you know which software you had installed?

    [–] [email protected] 4 points 2 days ago (1 children)

    I don’t really. I just sort of reinstall things as I need them

    [–] [email protected] 1 points 1 day ago* (last edited 1 day 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.

    [–] [email protected] 8 points 3 days ago (1 children)

    To be fair, with btrfs and whatever snapshot tool your distro has, you can make any distro just about impossible to fuck up.

    [–] [email protected] -2 points 2 days ago* (last edited 2 days ago) (1 children)

    Yeah, let me enable snapshots when it's already fucked

    [–] [email protected] 6 points 2 days ago (1 children)

    Yeah and while you’re at it, why not wait till after the boat is sinking to go out and buy life vests.

    [–] [email protected] 1 points 1 day ago

    That's exactly the point, that feature is only there if you know about it

    [–] [email protected] 12 points 3 days ago (1 children)

    Ever heard of btrfs snapshots and immutable?

    [–] [email protected] 2 points 2 days ago (1 children)

    I use NixOS which is immutable

    [–] [email protected] 2 points 2 days ago (1 children)

    NixOS isn't the only immutable distro...

    [–] [email protected] 3 points 2 days ago (1 children)

    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.

    [–] [email protected] 1 points 1 day ago (1 children)

    What's not fully immutable? You can't modify the store

    [–] [email protected] 1 points 1 day ago (1 children)

    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.

    [–] [email protected] 1 points 1 day ago (1 children)

    Every immutable system allows you to run binaries

    [–] [email protected] 1 points 1 day ago (1 children)
    [–] [email protected] 1 points 1 day ago* (last edited 1 day ago) (1 children)

    Couldn't reproduce modifying the store as root, but the users thing is true

    Not sure which things are not in the store though

    [–] [email protected] 1 points 22 hours ago (1 children)

    Root can't hit it simply, it's mounted rw, with a RO mount inside. Root can just check add and remove stuff while running with nix commands.

    Basically, it you have a privileged access exoloit, it's possible to target someone in ways you can't in silverblue

    Some people have made ways to make it more immutable. You can do things like add user folders and etc to the store. Harden it a little more. I'm the end, priv can just modify config*.nix and run rebuild in the background changing whatever.

    Other os, you have to commit changes and actually reboot. Which gives you an opportunity to check for changes and deny. Or at least fully detect it happened.

    It's not that it's dangerously insecure, but it's important to recognize it's not actually bulletproof and targeted attacks are still quite possible. It's LEAGUES more secure than regular OS, but you can't go full LifeLock on it.

    [–] [email protected] 1 points 4 hours ago

    If you have a root exploit I doubt Silverblue will save you

    I'm not really running it for security reasons either

    [–] [email protected] 2 points 3 days ago (2 children)

    Yes, that's why I'd like to run something as clean as NixOS. For now my compromise is OpenSUSE Tumbleweed's btrfs snapshots.

    [–] [email protected] 3 points 2 days ago

    openSUSE Tumbleweed made me a full Linux convert. I have "messed up" quite a few times, since I'm still very much a Linux noob, but openSUSE gave me that real confidence in my setup that I now boot into Windows only for a program or game that won't work with what I am needing at the moment, which is almost 10% of the time. Modding games is a hobby, and that's still not as easy as it is in Windows. Come on Nexus Mods, you can do it! :'-)

    [–] [email protected] 4 points 3 days ago

    I'm in an interesting place because I installed tumbleweed as a server. At some point there was a change to networking and when I updated, networking didn't work anymore, so I had to roll back to just before the update. I don't want to start from scratch, and I don't want to either bring a screen to it and troubleshoot what's going on again. I tried in the past, and after a few hours of getting nothing (everything should be fine, it just doesn't send or receive anything), I rolled it back and walked away. I have a feeling I just need to run yast and reconfigure there after updating, I just don't want to go through the effort of fixing it because it still runs fine.