mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#nixdarwin

2 Beiträge2 Beteiligte1 Beitrag heute

Any #nix / #nixpkgs users with #nixDarwin and #homeManager on macOS out there that have an idea how to cleanly uninstall nix-darwin AND home-manager for a flake based setup?

I’d like to switch from Determinate Systems nix installer to the for by #Lix Systems but it seems the only "documented" way to do so is to:

1) uninstall nix-darwin including the home-manager module made changes (so I don't toast my system)
2) uninstall nix via the Determinat uninstall
3) install nix via the Lix Systems installer
4) bootstrap nix-darwin
5) feed it my flake to get my configuration back

My problem is that step 1) is not clearly documented anywhere. There is this part for removing nix-darwin but it doesn't mention how it'll behave if the home-manager module is in use :|

I could use some #help here ’

nix-darwinnix-darwinnix modules for darwin

so proud of myself for managing to combine configuration for 2 hosts into one monorepo and made it possible in a smooth way!

As a background, initially these hosts had their configuration split in 2 separate git repos. Although I’ve planned to do that for nearly 3 weeks already, just had to read a lot in order to get the ropes of it. 💯 to the folks @ Discord Nix which guided me ❤️

github.com/dminca/nix-config

GitHubGitHub - dminca/nix-config: My Nix configuration for setting up aarch64-darwin & x86_64-darwin workstationsMy Nix configuration for setting up aarch64-darwin & x86_64-darwin workstations - dminca/nix-config

Perhaps someone who is familiar with NixOS/nix-darwin can give me a point in the right direction.

I'm trying to use nix-darwin on an M1 laptop running Sonoma, but packages seem to be behind. As an example, if I lookup Atuin in nix-packages.org, I can see that 23.11 has v 17, and unstable has v18.

I have tried running nix-channel --update darwin, but this does not seem to change anything; I still get v15 of atuin on my system. What am I missing?

Switched my #Nix installation on #macOS from the original installer to the one by @determinatesystems. Since that one disables channels in favor of flakes by default, I also took the opportunity to use Nix more properly instead of just running `nix-env -i` when needed :'-)

Ended up looking at #nixDarwin, #HomeManager and #Fleek. To a complete newb like me the differences where rather hard to grasp

nix-darwin tries to replicate the feel of #NixOS on macOS – something I couldn't comprehend since I never ran NixOS. More generally though, in NixOS, Nix is used to manage the whole OS (duh) and defines the system-wide installed/configured packages/environment. As such, nix-darwin replicates this style of providing a system environment on macOS.

home-manager shifts this concept to a per-user basis. The configuration system is quite similar, just per-user.

#Fleek is a Go tool to generate home-manager configurations from YAML.

Now, you can also install home-manager as a nix-darwin (on macOS) or NixOS (on... NixOS) module, which allows upgrades of the homes through the system wide Nix upgrade process.

So I completely nuked my #Nix install on my #MacBook. I uninstalled #NixDarwin, uninstalled Nix, upgraded the OS, reinstalled Nix, and then ran `nix-darwin switch` on my existing config. The longest part was waiting for #macOS to update! Everything is exactly as I had it, apps, tools, config, and all! Even my tiling window manager (named #Yabai) is working great after switching to the latest version!

Hey, #Nix and #NixDarwin and #HomeManager users 👋

Who also happen to use #TMux with #Resurrect plugin.

Ok, it's a lot to ask.
Still, do you know why :
1. TMux does not restore its state on lauch (I have to do it by hand) ?
2. The restored sessions and panes do not restart #Vim /#NVim ?

I had gitlab.com/pcoves/tmux/-/blob/ before moving to #Nix and it worked like a charm.
Now, not only can't I use my config file (💩) but the #HomeManager one fails at my most beloved feature.

GitLab.config/tmux/tmux.conf · 086a3aff931f14e2a6ad252ef9b2cdc297f40afd · Pablo COVES / tmux · GitLabGitLab.com
Fortgeführter Thread

If there is a canonical Git repo and pile of docs to point to that lets me build a pile of machines with:

- machines with NixOS + home-manager
- Mac machines with nix-darwin + home-manager
- multiple machines on Debian or whatever + Nix store + home-manager
- some easy way to toggle things on/off in the config (e.g. put work apps on work machines but NOT on personal machines, put GNOME on desktops but NOT on servers, etc)
- all in flakes

Please drop links 🙏 #Nix #NixOS #NixDarwin #HomeManager