Wrote up how I manage dotfiles across macOS and Linux with Nix. One repo, one flake.lock — same shell, editor, and tools on every machine. Home Manager and nix-darwin do the heavy lifting.

https://getnix.io/guides/cross-platform-dotfiles/

#Nix #NixOS #HomeManager #nixdarwin #Dotfiles #Linux #macOS

End Environment Drift: Manage macOS & Linux from a Single Nix Repo

Manage your entire desktop environment — dotfiles, applications, shell, system preferences — declaratively across macOS and Linux from a single repository.

Воспроизводимое изолированное окружение с Nix и DevContainers

Как фулстек разработчику, мне доводилось работать с проектами на совершенно разных технологиях. Как правило, нужно было поправить небольшой баг или сделать небольшую фичу. Для задач такого разряда стек технологий обычно не имеет значения: отладка примерно одинаковая что на JavaScript, что на Haskell, Go или Python. Написать немного кода мне, в общем-то, никогда не было сложно на любом языке, с которым я работал. Но вот что всегда было настоящей проблемой — это запустить и протестировать проект. На это запросто уходили дни: найти нужные версии компиляторов/интерпретаторов, дебаггера, пакетного менеджера и всякого сопутствующего тулинга. Я устал от этого, и придумал, как больше никогда в жизни не устанавливать тулинг вручную.

https://habr.com/ru/articles/1010282/

#nix #devcontainers #docker #reproducibility #nixos #nixdarwin

Воспроизводимое изолированное окружение с Nix и DevContainers

Проблема: миллион разных окружений Как фулстек разработчику, мне доводилось работать с проектами на совершенно разных технологиях. Как правило, нужно было поправить небольшой баг или сделать небольшую...

Хабр

Anyone got a working #GPG #git commit signing example for a #macos using #homemanager #nixdarwin

Currently getting the following error:
error: gpg failed to sign the data:
gpg: skipped "$USER": No secret key

#pinentry #pgp #gnupg #nix

Might be of interest to #Nix users out there:

https://gist.github.com/totoroot/b9684294d599504218e0c655ca56767d

I created a script that helps me audit packages installed via
nix profile as I often do that before adding them to my system configuration ❄️

I then tend to forget to remove them after I installed them via my system configuration (as systemPackages or via
#HomeManager).

With this script I can later on audit all packages installed, check which binaries they provide and automatically remove them if they were found in my PATH somewhere else.

#NixOS #NixDarwin
Audit packages installed via nix profile and optionally remove those already provided elsewhere on PATH.

Audit packages installed via nix profile and optionally remove those already provided elsewhere on PATH. - nix-profile-audit

Gist
New flake install instructions · Issue #740 · nix-darwin/nix-darwin

They don"t work. The documentation needs to also say when editing flake.nix Edit the two "simple" in the end of the file to the first part of the machine name (not including any .local or other dom...

GitHub
I want to write a config file to `$HOME/Dev/.my-config` using nix ... how would I do that? 

I only find how to write files to the home directory, but I want to place files everywhere around the system I need them to be 😬

#nix #nixos #nixdarwin
🔍 A riveting saga of transforming your Mac into a pristine museum exhibit with Nix-Darwin, because nothing screams #productivity like a system that stubbornly refuses to change. 🐢🎩 Watch a brave soul dive into the abyss of "imperative rot," only to emerge clutching a manual on how to make your shiny computer behave like an immovable monolith. 💀💻
https://carette.xyz/posts/going_immutable_macos/ #NixDarwin #MacTransformation #TechHumor #TechSaga #HackerNews #ngated
Going immutable on macOS

From imperative chaos to nix-darwin

A journey into a wild pointer

#macOS
once upon a time I bought the M2 MacBook Air
#nix
It is not much more than a year since I began exploring nix (or is it two years, I fool myself)
#DeterminateSystems
It did not take long before I discovered that to use nix on mac requires extra effort, when there inevitably are updates or upgrades. Apple has opinions. The opinionated nix, or more precisely its installer offload that effort.
#NixDarwin
nix-darwin enables system wide nix on macOS
#homebrew
Part reason I began using nix was moving away from Homebrew
#direnv
Exploring nix workflow led me to direnv, a powerfull way to load environments by entering directories. It works really great in tandem with nix. It is the sole homebrew package in my macOS
#asahi #linux
geerlingguy first reminded me of the possibility to install linux on my mac several years ago when the good folks at asahi released asahi linux
#arch #Wayland #Hyprland
Even more years ago I first began hearing the arch buzz, but lately this year buzz on arch using the Hyprland Wayland compositor for a tiled desktop got bumped and
#omarchy
the opinionated linux iteration No. 2 in DHH's series of "omakase" linux, making it easy for everyone to jump from apple to linux
#AsahiAlarm
Asahi has a project going on with fedora, but there is also the Asahi-Alarm based on arch. This is great because the arch project mainly focus on x86-64. Asahi-Alarm makes arch linux for aarch64/arm64 with the overarching project Asahi's focus on mac hardware.

Putting it all together tiredkebab manages scripts for mac based on DHH's omarchy

I then make my own opinions with nix, flakes.nix, and direnv.

aarch64-darwin support? · Issue #154 · microvm-nix/microvm.nix

We would like to use microvm to provide staging and build environments for developers, but a few of them use apple hardware/software. I can't find a way to use this project to run aarch64-linux vm ...

GitHub
Last week my shell config reop was 100% shell, now it's 79% nix!

#nixdarwin #nixOnMacOS #nix