nixos

/nixos76

a place for everything about NixOS and nix, and their accompanying deployment systems, reproducible software builds and dev environments. http://nixos.org https://discourse.nixos.org/

Just bought my ticket to NixCon in Berlin! Anyone else going?
I was looking for something to inhibit idle/sleep on wayland, like caffeinated.

Turns out, of course, systemd has this natively: systemd-inhibit

https://www.freedesktop.org/software/systemd/man/latest/systemd-inhibit.html
Remember when the founder of a Linux distro was ousted because of "conflicts with other developers"?

Me too, me too. A tale as old as time.

https://en.wikipedia.org/wiki/Gentoo_Linux#History
One of my fav things is reading interesting code, it's always nice to find a Github query that has a lot of interesting ideas and just spending time reading through them.

Here's one: https://github.com/search?q=lang%3Anix+polkit.addRule&type=code
After reading a lot of the Nix fork drama, I've come to the conclusion that these are the real Nix forks:

- Matrix
- Zulip
- Discord
- Github RFC discussions
- Discourse forum
- Reddit

There is very little technical forking (and none of it feels adversarial), just a forking of moderation and venue/audience.
Another fork, this one looks more focused on maintaining nixpkgs compatibility but with more modern tooling and conduct/governance: https://lix.systems/
Governance discussions moved to Zulip (need to be a repo contributor to get write access): https://nixpkgs.zulipchat.com/
Is it fair to say that nix flakes are a narrow waist? https://www.swyx.io/narrow-waists
MacOS or Linux, it doesn’t matter with nix since it is getting to the point that the distinction is becoming irrelevant to me:

https://nixcademy.com/2024/03/08/running-nixos-integration-tests-on-macos/

I have the confidence that I can work with Linux in any server, vm, or test on my mac seamlessly
`boot.binfmt.registrations` is pretty cool, we can define magic number headers or extensions to select which interpreter to use for binaries.

https://nixos.wiki/wiki/Appimage
does anyone know what is the difference between these flake inputs?

```
inputs= {
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixpkgs-23.11-darwin";
nixos.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:nixos/nixpkgs/23.11";
};

```
"Given the ability to relatively easily create NixOS VMs from a machine configuration, this should enable me to run a NixOS VM inside my Github Actions runners, and use that VM to run end to end tests of my craft packages."

https://jnsgr.uk/2024/02/nixos-vms-in-github-actions/
TIL: `home-manager.sharedModules`

"Extra modules added to all users."

(Is this documented anywhere??)

https://github.com/nix-community/home-manager/blob/5b9156fa9a8b8beba917b8f9adbfd27bf63e16af/nixos/common.nix#L75-L82