1037
Snap bad (lemmy.world)
(page 2) 50 comments
sorted by: hot top controversial new old
[-] kibiz0r@midwest.social 39 points 2 days ago
[-] scintilla@lemm.ee 9 points 2 days ago

How the hell do you learn to use nix. I'm not a programer but figured out how to run gentoo just fine with the guide. nixOS feels like I'm in a mirror maze in the dark and the room is rotating.

[-] kibiz0r@midwest.social 6 points 2 days ago* (last edited 2 days ago)

Well, Nix is a programming language, so there’s no getting around having to learn basic principles of coding.

That said, I feel like coming into Nix with a lot of programming experience actually worked against me at first, because I made a lot of assumptions that weren’t true and basically had to “unlearn” certain things.

The main things being:

  • Lazy evaluation is trippy as hell sometimes
  • The language truly does not allow for side-effects. Everything you might think is a side-effect is really executed from outside the language runtime itself
  • It might be more accurate to think of Nix as a database, where the keys are the parameters of what to build and the values are directories full of the built artifacts

What really made it click for me was seeing how a derivation object is basically equivalent to a path. So if I do ”${pkgs.foo}/bar”, that’s the exact absolute path (plus /bar) where Nix will end up storing the output of the pkgs.foo derivation. Even without actually building the derivation, you can know where it will end up.

Anyway, the documentation is pretty shitty, so you basically have to scour every community resource you can find and read way more of it than it seems like you should have to. Discord/Matrix servers help a lot too. And learning to navigate the source code for nixpkgs.

Also: Don’t start with NixOS, imo. Start with dumb throwaway stuff where you make a derivation that downloads a file and unzips it and runs a single command. Once you understand that, do something that requires understanding a bit of nixpkgs, like using overlays. Then you can use NixOS. Otherwise, there’s too much going on all at once.

Edit:

  • Nix pills is good
  • Vimjoyer is amazing
[-] unknown1234_5@kbin.earth 35 points 2 days ago

my issue with snaps is honestly just that they are controlled too much by just one entity (canonical) and there is no reason for them to exist because flatpak already does everything they do.

load more comments (3 replies)
[-] MoonlightFox@lemmy.world 33 points 2 days ago

I have really started to like AppImage. You just download a single file make it executable and it just works.

I use Cursor for coding, and it has an appimage that replaces itself when it updates.

load more comments (10 replies)
[-] cley_faye@lemmy.world 22 points 2 days ago

A rusty bucket riddled with holes and the stick part of a shovel is better than snap for running software.

[-] callyral@pawb.social 13 points 2 days ago

laughs in Nix and NixOS

[-] Monstrosity@lemm.ee 25 points 2 days ago

I tried a snap package on my pop-os system once & it poo'ed folders all over my system, then didn't actually uninstall when I uninstalled it.

No thank you.

load more comments (6 replies)
[-] MehBlah@lemmy.world 12 points 2 days ago

Like a bunch of old farts in a coffee shop arguing over which truck brand is better.

load more comments (4 replies)

.tar.gz should be appimage.

load more comments (1 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 29 Apr 2025
1037 points (100.0% liked)

linuxmemes

24723 readers
1747 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