cross-posted from: https://infosec.pub/post/9428674
I had the (perhaps foolishly ambitious) idea of creating a rolling fork of Lemmy with the intent of modifying the codebase for use in an open source pub sub implementation of retail inventory. But I have to get standard Lemmy working first...and I like to use Nix for everything I do in the dev world (where feasible).
So, I forked the repo and was immediately brought into dev environment hell.
They only offer a choice between:
A.) Docker B.) Ansible C.) Building from scratch.
Two hours of fighting with the scratch build instructions and I eventually had to admit defeat due to some vague dependencies (and general malaise). Though I have completely flakified my Purescript and Haskell dev environments, I have found Rust to be a lot more challenging even on simple projects.
Anyway, I decided to come here to ask: **How easy would it be to flakify the Lemmy repo to add a fourth build option for those of us in the Nix world? **
Can I reference the build instructions from nixpkgs to get close to my intended goal? I need all of the help I can get. Be as pedantic or defeatist as you will. I currently have no skin in this game and merely want to help the Lemmy devs welcome people that are more nixy like myself (if nothing else).
Say Goodbye to Containers - Ephemeral Environments with Nix Shell
https://youtu.be/0ulldVwZiKA
With Nix Shell, you can instantly spin up the exact environment you need, tailored to specific projects, and discard it with ease once you're done. No contai...
I setup a next.js project with pkgs.mkshell, and used nix develop to automatically build the project. However, when I leave the shell, the files persist. How should/can(?) I setup my shell.nix so that files in the directory it drops down into are automatically removed when leaving the ephemeral shell?
How to get KDE Plasma 6?
Hey guys, I'm pretty new to Nix and NixOS and one of the reasons I installed it is because I know there's some way to install the KDE 6 Beta before the official stable release. I wanted to use the kde2nix overlay, but appearantely KDE 6 has been merged into the official nixpkgs repository. How do I switch from Plasma 5 to 6? I'm already on the unstable channel if that matters.
Thanks in advance.
Could Nix os be like active directory on Linux?
So I've been looking into Nix and it seems like a pretty cool way of managing machines. However, I'm curious about how well it can manage user authentication. Theoretically one should be able to setup the equivalent of roaming profiles with rsync and some sort of authentication server but I haven't seen a lot of information on this topic.
Anyone used Nix in a group or company setting? If so, how did it work?
Explainix | Roman Zaynetdinov (zaynetro)
https://zaynetro.com/explainix
Explain Nix syntax visually
Nixpkgs merge bot testing and plan
https://discourse.nixos.org/t/nixpkgs-merge-bot-testing-and-plan/39824
After receiving a lot of concerned feedback in a previous attempt, it’s time to clear things up and give it another chance. Starting today, the Nixpkgs merge bot will be enabled in dry-run mode. This means that it is not privileged to actually merge anything at all just yet, and instead only prints a comment explaining what it would’ve done if merges were enabled. The people behind this effort are @Lassulus and @Mic92. This announcement was written with @infinisil’s help, who’s also in favor...
how to / best practices for setting up and tracking a Python project with nix flakes
I want to start a new project, and I want to try to handle all the reproducibility / "containerization" in nix instead of dockerfiles. I see some examples online but I think they're including more uncommon procedures and/or don't do things the "nix" way.
What's the right way to manage a simple python project? Should I just make a derivation.nix for use in nix-shell -p and have the ephemeral shell be my container? Can/should I do it with nix flakes instead? What would a simple nix flake look like that:
pulls an initial python repo from github
possibly executes whatever build instructions might be included
extends other system packages or other versions of the same python package,
has local area network access,
and GPU access
cross-posted from: https://feddit.de/post/7895009
I'm a semi-recent NixOS user and one thing that bothers me since the beginning is that when I change the Gnome theme (between light and dark), Firefox doesn't adapt. The system theme in Firefox is enabled, but it always displays the light theme, no matter what theme is selected in Gnome.
Internet search, including searching through NixOS discourse, packages, options and Nixpkgs repo surfaced a solution.
Any ideas or tips how to achieve system theme integration for Firefox on NixOS?
NixOS 23.11 / Gnome 45 / sway
Flakes aren't real and cannot hurt you: a guide to using Nix flakes the non-flake way
https://jade.fyi/blog/flakes-arent-real/
computers i guess