From 1c9249426a274884f8104e26ca63e4b3b3578687 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 13 Apr 2026 20:47:25 -0400 Subject: mojo: Refactor --- hostnix/mojo/modules/apps.nix | 26 ++++++++++++++++++++++++++ hostnix/mojo/modules/system.nix | 23 +++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 hostnix/mojo/modules/apps.nix create mode 100644 hostnix/mojo/modules/system.nix (limited to 'hostnix/mojo/modules') diff --git a/hostnix/mojo/modules/apps.nix b/hostnix/mojo/modules/apps.nix new file mode 100644 index 0000000..1562893 --- /dev/null +++ b/hostnix/mojo/modules/apps.nix @@ -0,0 +1,26 @@ +{ pkgs, pkgsUnstable, ... }: +{ + environment.systemPackages = [ + pkgs.direnv + pkgs.nix-direnv + + (pkgsUnstable.callPackage ../packages/claude-code { }) + pkgsUnstable.jujutsu + ]; + + homebrew = { + brews = [ "mas" ]; + + casks = [ + "karabiner-elements" # modifiers, fn, reverse scroll + "linearmouse" # scroll by lines, universal back/forward + ]; + + masApps = { + "Ghostery Privacy Ad Blocker" = 6504861501; + "Kagi for Safari" = 1622835804; + "KeePassium (KeePass passwords)" = 1435127111; + Xcode = 497799835; + }; + }; +} diff --git a/hostnix/mojo/modules/system.nix b/hostnix/mojo/modules/system.nix new file mode 100644 index 0000000..362a01b --- /dev/null +++ b/hostnix/mojo/modules/system.nix @@ -0,0 +1,23 @@ +{ + pkgs, + pkgsUnstable, + self, + ... +}: +{ + nixpkgs.config.allowUnfree = true; + + homebrew = { + enable = true; + # Enable after nix-darwin 25.11 + # enableBashIntegration = true; + caskArgs.require_sha = true; + onActivation.cleanup = "uninstall"; + }; + + system.primaryUser = "joe"; + + # $ chsh -s /run/current-system/sw/bin/bash + environment.shells = [ pkgs.bashInteractive ]; + programs.bash.completion.enable = true; +} -- cgit v1.3.1