From 80d848cfa3731ff7f4b79e95bd73999fcc8dcb46 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Sat, 15 Aug 2026 00:34:17 +0200 Subject: feat(darwin): add makkie host config and parameterize per-machine settings --- modules/home/zsh.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/home/zsh.nix') diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index a7817f9..1c114b2 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, flakeAttr, ... }: let # Pinned to commits, not branch names: a branch ref keeps moving while the @@ -117,8 +117,8 @@ in alias ls='ls --color' '' + (if pkgs.stdenv.isDarwin then '' alias tailscale='/Applications/Tailscale.app/Contents/MacOS/Tailscale' - alias rebuild='sudo darwin-rebuild switch --flake ~/ghq/simenandre.no/dotfiles#default' - alias update='nix flake update --flake ~/ghq/simenandre.no/dotfiles && sudo darwin-rebuild switch --flake ~/ghq/simenandre.no/dotfiles#default' + alias rebuild='sudo darwin-rebuild switch --flake ~/ghq/simenandre.no/dotfiles#${flakeAttr}' + alias update='nix flake update --flake ~/ghq/simenandre.no/dotfiles && sudo darwin-rebuild switch --flake ~/ghq/simenandre.no/dotfiles#${flakeAttr}' alias nix-gc='sudo nix-collect-garbage --delete-older-than 14d && nix-collect-garbage --delete-older-than 14d && nix store gc' '' else "") + '' -- cgit v1.2.3