Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b82f13a
Restore Safari defaults
stackptr Oct 17, 2025
460cdab
Rename favorites bar key
stackptr Oct 17, 2025
521e26c
Add note
stackptr Oct 17, 2025
770da3b
Remove commented keyboard shortcuts
stackptr Oct 17, 2025
c0e2f4f
Consolidate darwin modules
stackptr Oct 17, 2025
52772a2
Remove redundant description
stackptr Oct 17, 2025
8632d40
Formatting
stackptr Oct 17, 2025
744935a
Add `startOnActivation` options
stackptr Oct 17, 2025
6827fae
Move `system.disableUpdates` to module
stackptr Oct 17, 2025
e6a4a79
Support custom keys in `system.disableUpdates`
stackptr Oct 17, 2025
d3c996d
Handle domain via `system.disableUpdates`
stackptr Oct 17, 2025
9b9dd0e
Reorganize darwin modules
stackptr Oct 17, 2025
5391fb9
Add tailscale module
stackptr Oct 17, 2025
c09c526
Enable tailscale via module
stackptr Oct 17, 2025
dad5be7
Add Craft module
stackptr Oct 17, 2025
5903cce
Enable craft via module
stackptr Oct 17, 2025
05f88d4
Add Nova module
stackptr Oct 17, 2025
bbf930a
Enable Nova via module
stackptr Oct 17, 2025
f68277f
Add Postico module
stackptr Oct 17, 2025
fc34ebd
Enable Postico via module
stackptr Oct 17, 2025
5c32748
Add Roon module
stackptr Oct 17, 2025
c05e48f
Enable Roon via module and simplify casks
stackptr Oct 17, 2025
b6b4f49
Add SoundSource module
stackptr Oct 21, 2025
d5f07ce
Enable SoundSource via module
stackptr Oct 21, 2025
04aacaa
Enable packages through home-manager
stackptr Oct 21, 2025
8baaa57
Remove TODO
stackptr Oct 21, 2025
b864538
Remove note
stackptr Oct 21, 2025
7ff29ca
Move darwin home packages into module
stackptr Oct 21, 2025
227083f
Add iina module
stackptr Oct 21, 2025
f5d33ea
Enable iina via module
stackptr Oct 21, 2025
766cf5a
Remove Hand Mirror from `startOnActivation`
stackptr Oct 21, 2025
7725652
Add DaisyDisk module
stackptr Oct 21, 2025
bff9a85
Enable DaisyDisk via module
stackptr Oct 21, 2025
0804507
Move programs into host module
stackptr Oct 21, 2025
43be208
Add little-snitch module
stackptr Oct 21, 2025
b9a7b1c
Enable little-snitch
stackptr Oct 21, 2025
d56a4f8
Remove deprecated QLMarkdown
stackptr Oct 21, 2025
450f74a
`rc.darwin.defaults` module
stackptr Oct 21, 2025
14957d6
Use `rc.darwin.defaults`
stackptr Oct 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,12 @@
unzip
];
guiApps = [cinny-desktop code-cursor];
darwinApps = [
chatgpt
claude-desktop
daisydisk
github-desktop
gitify
iina
m-cli
mas
mochi
slack
soundsource
the-unarchiver
whatsapp-for-mac
zoom-us
];
in
development
++ nixSpecific
++ tuiApps
++ utilities
++ lib.optionals enableGuiPackages guiApps
++ lib.optionals stdenv.isDarwin darwinApps;
++ lib.optionals enableGuiPackages guiApps;
home.sessionPath = [
"$HOME/.local/bin"
];
Expand Down
8 changes: 8 additions & 0 deletions hosts/Rhizome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
imports = [
./dock.nix
./hardware.nix
./programs.nix
];

rc.darwin.defaults = {
fonts = true;
homebrew = true;
security = true;
system = true;
};
}
91 changes: 91 additions & 0 deletions hosts/Rhizome/programs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
config,
pkgs,
...
}: {
homebrew = {
enable = true;
casks = [
"legcord"
"plex"
"textual"
];
# N.B.: Removed entries in `masApps` require manual uninstallation
masApps = {
"Copilot" = 1447330651;
"Folder Quick Look" = 6753110395;
"GoodLinks" = 1474335294;
"Hand Mirror" = 1502839586;
"Hush" = 1544743900;
"Mapper" = 1589391989;
"Mela" = 1568924476;
"MusicBox" = 1614730313;
"Numbers" = 409203825;
"Noir" = 1592917505;
"Pages" = 409201541;
"Paku" = 1534130193;
"Parcel" = 375589283;
"Pixea" = 1507782672;
"Play" = 1596506190;
"Prompt" = 1594420480;
"Reeder" = 1529448980;
"Timery" = 1425368544;
"Things" = 904280696;
"Wipr" = 1320666476;
};
};

programs.craft = {
enable = true;
};

programs.daisydisk = {
enable = true;
};

programs.fastscripts = {
enable = true;
startOnActivation = true;
};
rc.darwin.defaults.fastscripts = true;

programs.iina = {
enable = true;
};

programs.little-snitch = {
enable = true;
};

programs.nova-editor = {
enable = true;
};

programs.popclip = {
enable = true;
startOnActivation = true;
};

programs.postico = {
enable = true;
};

programs.roon = {
enable = true;
};

programs.scroll-reverser = {
enable = true;
startOnActivation = true;
};

programs.soundsource = {
enable = true;
startOnActivation = true;
};

programs.tailscale = {
enable = true;
startOnActivation = true;
};
}
77 changes: 6 additions & 71 deletions modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,86 +3,21 @@
config,
pkgs,
lib,
username,
...
}: {
imports = [
./disable-updates.nix
./fastscripts.nix
./fonts.nix
./homebrew.nix
./popclip.nix
./scroll-reverser.nix
./security.nix
./start-on-activation.nix
./startup-apps.nix
./system-defaults.nix
./programs
./system
./rc.nix
];

programs.fastscripts = {
enable = true;
userScripts = {
SafariQuitWithConfirmation = {
source = pkgs.writeText "safari-quit-with-confirmation.applescript" (builtins.readFile ./fastscripts/safari-quit-with-confirmation.applescript);
target = "Applications/Safari/Quit With Confirmation.applescript";
};
};
plistFile = pkgs.writeText "fastscripts-keybindings.plist" (builtins.readFile ./fastscripts/keybindings.plist);
};

# TODO: Ideally this would be in a Darwin-specific home-manager module
programs.popclip = {
enable = true;
};

programs.scroll-reverser = {
enable = true;
home-manager.users.${username} = {...}: {
imports = [./home.nix];
};

system.configurationRevision = self.rev or self.dirtyRev or null;

# TODO: Keyboard shortcuts, see nix-darwin/nix-darwin#699
# system.keyboard.shortcuts = let
# cmdOptLeft = {
# mods = {
# option = true;
# command = true;
# };
# key = "left";
# };
# cmdOptRight = {
# mods = {
# option = true;
# command = true;
# };
# key = "right";
# };
# in {
# enable = true;
# appShortcuts = {
# "Preview.app" = {
# "Show Previous Tab" = cmdOptLeft;
# "Show Next Tab" = cmdOptRight
# };
# "Finder.app" = {
# "Show Previous Tab" = cmdOptLeft;
# "Show Next Tab" = cmdOptRight
# };
# "Prompt.app" = {
# "Show Previous Tab" = cmdOptLeft;
# "Show Next Tab" = cmdOptRight
# };
# "Mail.app" = {
# "Archive" = {
# key = "right";
# };
# };
# "Nova.app" = {
# "Show Previous Tab" = cmdOptLeft;
# "Show Next Tab" = cmdOptRight
# };
# };
# };

# Auto upgrade nix package and the daemon service.
nix.enable = true;
nix.package = pkgs.nix;
Expand Down
37 changes: 0 additions & 37 deletions modules/darwin/disable-updates.nix

This file was deleted.

10 changes: 0 additions & 10 deletions modules/darwin/fonts.nix

This file was deleted.

21 changes: 21 additions & 0 deletions modules/darwin/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
self,
config,
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
chatgpt
claude-desktop
github-desktop
gitify
m-cli
mas
mochi
slack
the-unarchiver
whatsapp-for-mac
zoom-us
];
}
63 changes: 0 additions & 63 deletions modules/darwin/homebrew.nix

This file was deleted.

28 changes: 28 additions & 0 deletions modules/darwin/programs/craft.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.programs.craft;
in {
options.programs.craft = {
enable = mkEnableOption "Craft";

startOnActivation = mkEnableOption "starting Craft on activation";
};

config = mkIf cfg.enable {
homebrew.casks = [
{
name = "craft";
greedy = true;
}
];
system.disableUpdates = ["com.lukilabs.lukiapp"];
system.startOnActivation = mkIf cfg.startOnActivation {
"Craft" = "/Applications/Craft.app/";
};
};
}
Loading