this post was submitted on 19 Jun 2024
42 points (97.7% liked)
Linux
48287 readers
627 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Dont. uBlue also switched away from it.
My question is, how do I remove it again?
What does uBlue switching away from it have to do with someone wanting to install it on Silverblue?
He thought it's not possible to install nix on silverblue and another commenter tried to install it on secureblue. It's not possible there. The problem is either somewhere along the supply chain (ublue) or with secure blue
Removing nix is mostly done by deleting /nix, and removing some systemd services, as well as deleting some nix-related users or groups (iirc nixblkd)
Because almost all of nix happens in /nix it doesn't clutter much of the system.
/nix doesnt work on Fedora Atomic, thats the thing. So it has to be somewhere else.
I still have dozens of strange Nix users left
Why does it work on my machine? I'm on silverblue
Dont know how they solve it, but /nix is not possible.
Maybe in /var/nix and symlinked or mounted to /nix
Yes, that's likely the case.
The ahayzen/silverblue-nix guide uses bind mounts from
/var/lib/nix
to/nix
. The latter being created by making/
temporarily writeable withchattr +i /
.https://gitlab.com/ahayzen/silverblue-nix#using-nix-on-fedora-silverblue
It's possible to install nix on Fedora Atomic by disabling SELinux and using bind mounts.
I hope this is not a serious suggestion?
This needs correct SELinux labels, and not just disabling it.
Dan Walsh is very sad.
It seems the Determinate Nix installer supports Fedora Atomic with SELinux enabled.
https://github.com/DeterminateSystems/nix-installer
Edit:
Since no nix installer supported SELinux at the time, it was the only way to use nix on Fedora Atomic. With a better option available disabling SELinux is a bad idea indeed.
I didn't disable selinux
It seems the Determinate Nix installer supports Fedora Atomic and SELinux.
On topic:
I really like Nix and home-manager. I've mostly switched to NixOS because it's more convenient for window manager setups than building ublue images imo.
Having to mess with containers for different dev environments and keeping the up to date is imo more annoying than creating a shell.nix
Also being able manage my dorfiles with home-manager and installing software declaratively helps in keeping the system free of clutter.
Why?