From 35275b3122128c3373b66d975fe0ab012e129d95 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 13 Apr 2026 11:49:29 -0400 Subject: Homebrew with a few initial mas (App Store) apps --- hostnix/mojo/flake.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'hostnix/mojo') diff --git a/hostnix/mojo/flake.nix b/hostnix/mojo/flake.nix index 913d702..87e3c8d 100644 --- a/hostnix/mojo/flake.nix +++ b/hostnix/mojo/flake.nix @@ -25,6 +25,8 @@ nix.settings.experimental-features = "nix-command flakes"; + system.primaryUser = "joe"; + # Set Git commit hash for darwin-version. system.configurationRevision = self.rev or self.dirtyRev or null; @@ -37,10 +39,24 @@ nixpkgs.config.allowUnfree = true; }; + + apps = { pkgs, ... }: { + homebrew = { + enable = true; + onActivation.cleanup = "uninstall"; + brews = [ "mas" ]; + casks = [ "linearmouse" ]; + masApps = { + "Kagi for Safari" = 1622835804; + "KeePassium (KeePass passwords)" = 1435127111; + Xcode = 497799835; + }; + }; + }; in { darwinConfigurations.mojo = nix-darwin.lib.darwinSystem { - modules = [ configuration ]; + modules = [ configuration apps ]; }; }; } -- cgit v1.3.1