simplify darwin defaults
This commit is contained in:
parent
733386a648
commit
d882bbe2f2
2 changed files with 3 additions and 27 deletions
|
|
@ -26,16 +26,14 @@
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Firefox configuration
|
|
||||||
programs.firefox-custom = {
|
programs.firefox-custom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null; # Use system Firefox on Darwin
|
package = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ghostty configuration
|
|
||||||
programs.ghostty-custom = {
|
programs.ghostty-custom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null; # Use Homebrew-installed Ghostty on Darwin
|
package = null;
|
||||||
windowMode = "windowed";
|
windowMode = "windowed";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -45,7 +43,6 @@
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
# darwin-specific alias
|
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
oss = "sudo darwin-rebuild switch --flake ~/.config/nix#$(hostname)";
|
oss = "sudo darwin-rebuild switch --flake ~/.config/nix#$(hostname)";
|
||||||
};
|
};
|
||||||
|
|
@ -68,7 +65,6 @@
|
||||||
rsync
|
rsync
|
||||||
];
|
];
|
||||||
|
|
||||||
# Startup applications via launchd agents
|
|
||||||
launchd.agents.snipaste = {
|
launchd.agents.snipaste = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -123,10 +119,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# File associations configuration (macOS equivalent of xdg.mimeApps)
|
|
||||||
# Uses duti to set default applications for file types via Launch Services
|
|
||||||
home.activation.setFileAssociations = config.lib.dag.entryAfter ["writeBoundary"] ''
|
home.activation.setFileAssociations = config.lib.dag.entryAfter ["writeBoundary"] ''
|
||||||
# Text and code files - open with TextMate
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .txt all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .txt all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .md all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .md all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .markdown all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .markdown all
|
||||||
|
|
@ -165,14 +158,9 @@
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .vim all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .vim all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .tex all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .tex all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .bib all
|
run ${pkgs.duti}/bin/duti -s com.apple.TextEdit .bib all
|
||||||
|
|
||||||
# Documents
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .pdf all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .pdf all
|
||||||
|
run ${pkgs.duti}/bin/duti -s org.inkscape.Inkscape .svg all
|
||||||
# Diagrams - Draw.io
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.jgraph.drawio.desktop .drawio all
|
run ${pkgs.duti}/bin/duti -s com.jgraph.drawio.desktop .drawio all
|
||||||
|
|
||||||
# Images - Preview
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .png all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .png all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .jpg all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .jpg all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .jpeg all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .jpeg all
|
||||||
|
|
@ -184,11 +172,6 @@
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .heic all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .heic all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .heif all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .heif all
|
||||||
run ${pkgs.duti}/bin/duti -s com.apple.Preview .ico all
|
run ${pkgs.duti}/bin/duti -s com.apple.Preview .ico all
|
||||||
|
|
||||||
# SVG - Inkscape
|
|
||||||
run ${pkgs.duti}/bin/duti -s org.inkscape.Inkscape .svg all
|
|
||||||
|
|
||||||
# Videos - IINA
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mp4 all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mp4 all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mkv all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mkv all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .avi all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .avi all
|
||||||
|
|
@ -199,8 +182,6 @@
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .m4v all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .m4v all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mpg all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mpg all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mpeg all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mpeg all
|
||||||
|
|
||||||
# Audio - IINA
|
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mp3 all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .mp3 all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .m4a all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .m4a all
|
||||||
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .flac all
|
run ${pkgs.duti}/bin/duti -s com.colliderli.iina .flac all
|
||||||
|
|
|
||||||
|
|
@ -155,19 +155,15 @@
|
||||||
brews = [
|
brews = [
|
||||||
];
|
];
|
||||||
casks = [
|
casks = [
|
||||||
# Development
|
|
||||||
"ghostty"
|
"ghostty"
|
||||||
"ovito"
|
"ovito"
|
||||||
# Internet & Network
|
|
||||||
"clash-verge-rev"
|
"clash-verge-rev"
|
||||||
"firefox"
|
"firefox"
|
||||||
"keepassxc"
|
"keepassxc"
|
||||||
"tailscale-app"
|
"tailscale-app"
|
||||||
# Media
|
|
||||||
"calibre"
|
"calibre"
|
||||||
"iina"
|
"iina"
|
||||||
"musicbrainz-picard"
|
"musicbrainz-picard"
|
||||||
# Productivity
|
|
||||||
"drawio"
|
"drawio"
|
||||||
"inkscape"
|
"inkscape"
|
||||||
"microsoft-excel"
|
"microsoft-excel"
|
||||||
|
|
@ -177,7 +173,6 @@
|
||||||
"obsidian"
|
"obsidian"
|
||||||
"slidepilot"
|
"slidepilot"
|
||||||
"zotero"
|
"zotero"
|
||||||
# Utilities
|
|
||||||
"aerospace"
|
"aerospace"
|
||||||
"hiddenbar"
|
"hiddenbar"
|
||||||
"keycastr"
|
"keycastr"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue