Comments

This profile is from a federated server and may be incomplete. Browse more on the original instance.

madmaurice, to linux in Does Nix's break from FHS cause problems?
@madmaurice@discuss.tchncs.de avatar

Nix installs derivations into separate folders. A derivation can be a package, but can also be other things like configuration files, scripts or sources for packages. Nix doesn’t distinguish between these derivations by a name but rather by a hash created from their build instructions.

For example two instances of the same package with a different version are two different derivations and thus nix can have both package versions installed without them interfering with each other. But this goes beyond just a package version. It is e.g. possible to have the same package with the same version but different patches applied, or relying on different versions of dependencies. Since their build instructions differ both can be installed simultaneously.

This approach grants a variety of advantages. For example upgrading your NixOS system just installs new derivations of packages and configuration files that have changed, while keeping previous derivations until they’re garbage collected at a later time. This allows you to switch freely between both iterations of your system, for example if an update causes issues you can just revert back to before an update easily. Another advantage is that an unprivileged user can install packages they need without interfering with the rest of the system, for example an older python version or a newer one, or some software they want but the system does not provide.

The price of having this kind of isolation between packages is that nixos cannot install binaries and libraries into common locations. Effectively /usr/bin only contains the env binary. If you’re familiar with shell scripting you might have run into lines such as #!/usr/bin/env bash. This env util will essentially search bash in your PATH variable and start it. Lines like #!/bin/bash however will not work, because there’s no bash installed in that location.

Another case where a missing fhs is a problem is when using pre-compiled binaries. In contrast to binaries built through nix, which have their required libraries hardcoded as absolute paths, pre-compiled binaries you download usually only contain the name of the library they need, which works in a conventional fhs environment, because these libraries tend to be found in /libor /usr/lib. On NixOS neither of those are present. There two solutions to this. Either you create an fhs environment by listing the set of derivations to be symlinked into a chroot environment which mimics an FHS. Or you can install github.com/Mic92/nix-ld which automatically finds the required libraries the nix way if you start such a binary. There’s also steam-run which installs an fhs with most of the dependencies necessary to start Linux games from Steam.

madmaurice, (edited ) to linux in Good Nix OS series: five articles for new users.
@madmaurice@discuss.tchncs.de avatar

Imho I wouldn’t bother with nix-env or nix profile. It just creates a secondary list of packages that needs to be maintained and it’s cumbersome to do so. There’s nix-shell or nix shell if you need a package temporarily and there’s your configuration.nix or flake for everything else.

Side note: nix profile at least has consistent commands: install/remove/upgrade

madmaurice, to lemmyshitpost in So that's what a cokehead is
@madmaurice@discuss.tchncs.de avatar

I wouldn’t say it is “hidden”. “covered” would be a fitting word.

madmaurice, to memes in This is the master race...?
@madmaurice@discuss.tchncs.de avatar

To be fair this is not the first infamous fascist with a bad hairdo, but this one certainly raised the bar. It looks like a bowl cut, but with different size bowls used…

madmaurice, to askelectronics in Light is light 🤷
@madmaurice@discuss.tchncs.de avatar

In university in the first lecture I visited they demonstrated that fact using a pickle. They sent current through and it glowed.

madmaurice, (edited ) to linux in Gnome completely different and buggy after update (Debian)
@madmaurice@discuss.tchncs.de avatar

First of all: Did you do apt dist-upgrade as well? If I remember correctly that is a new required step when upgrading to a new Debian release.

If that doesn’t help, you could check if your nvidia-detect package version is the expected version, that comes with Debian 12.

If neither of these steps help you could disregard nvidia-detect and try the steps listed in the following link. It seems the firmware was moved to a separate repository compared to Debian 11. You might need to add that by hand. wiki.debian.org/NvidiaGraphicsDrivers#bookworm-52…

madmaurice, (edited ) to linux in How I can enable i3-gaps?
@madmaurice@discuss.tchncs.de avatar

Your i3 is too old. Perhaps your distro’s repository has a package called “i3-gaps” which was the former fork that implemented this feature. i3-gaps was merged back into i3 in the meantime.

Since i3 4.22, you can configure window gaps.

i3wm.org/docs/userguide.html#gaps

madmaurice, to lemmyshitpost in Poseidon why
@madmaurice@discuss.tchncs.de avatar

i…inside? 😵‍💫

madmaurice, to linux in Super weird error, what's happening?
@madmaurice@discuss.tchncs.de avatar

Thank you for proving my point.

madmaurice, to lemmyshitpost in German Art
@madmaurice@discuss.tchncs.de avatar

You’re right. He must’ve been still Austrian when he failed art. The academy that failed him was in Vienna afair

madmaurice, to lemmyshitpost in German Art
@madmaurice@discuss.tchncs.de avatar

Hitler became a German citizen in 1932 🙄

madmaurice, to lemmyshitpost in German Art
@madmaurice@discuss.tchncs.de avatar

I’m pretty sure Hitler was not the last German to fail art, so I’ll take my chances.

madmaurice, to lemmyshitpost in NASA has some explaining to do
@madmaurice@discuss.tchncs.de avatar

“Satellites block God’s ability to watch us”

The omniscient, omnipotent god is defeated by a piece of space trash? What a rip-off.

madmaurice, to lemmyshitpost in The American mind cannot comprehend this
@madmaurice@discuss.tchncs.de avatar

Well you obviously can’t drive the truck to the bathroom. 🤡 jk

madmaurice, to lemmyshitpost in The American mind cannot comprehend this
@madmaurice@discuss.tchncs.de avatar

To be fair. That’s the Christmas market on the Altmarkt in Dresden and there’s a huge parking garage right below it. 😄

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #