this post was submitted on 19 May 2025
310 points (94.0% liked)

linuxmemes

25040 readers
1484 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
    [–] rumba@lemmy.zip 31 points 4 days ago* (last edited 4 days ago) (32 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.

    [–] floofloof@lemmy.ca 38 points 4 days ago* (last edited 4 days ago) (26 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.

    [–] iopq@lemmy.world 7 points 3 days ago (25 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

    [–] cepelinas@sopuli.xyz 12 points 3 days ago (1 children)

    Ever heard of btrfs snapshots and immutable?

    [–] iopq@lemmy.world 2 points 3 days ago (1 children)

    I use NixOS which is immutable

    [–] cepelinas@sopuli.xyz 2 points 3 days ago (1 children)

    NixOS isn't the only immutable distro...

    [–] rumba@lemmy.zip 2 points 3 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.

    [–] iopq@lemmy.world 1 points 2 days ago (1 children)

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

    [–] rumba@lemmy.zip 1 points 2 days 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.

    [–] iopq@lemmy.world 1 points 2 days ago (1 children)

    Every immutable system allows you to run binaries

    [–] rumba@lemmy.zip 1 points 2 days ago (1 children)
    [–] iopq@lemmy.world 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

    [–] rumba@lemmy.zip 1 points 1 day 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.

    [–] iopq@lemmy.world 1 points 14 hours ago (1 children)

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

    I'm not really running it for security reasons either

    [–] rumba@lemmy.zip 1 points 4 hours ago

    I would argue it's harder to get a root exploit on Silverblue because more of the filesystem is less mutable and applications are more sandboxed.

    I'm running NixOS because declarative is saving me time on system changes nad keeping multiple workstations synced up.

    SB is more well protected against unauthorized system changes, Nix is more flexible while still providing good rollbacks.

    load more comments (23 replies)
    load more comments (23 replies)
    load more comments (28 replies)