Skip to content

Commit

Permalink
add brew apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dszakallas committed Oct 25, 2024
1 parent a77dcfd commit 565c7b2
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hosts/jellyfish/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ self, davids-dotfiles, ... }:
let myUsername = "davidszakallas";
in {
imports =
[ davids-dotfiles.darwinModules.default "${self}/users/${myUsername}" ];
imports = [
davids-dotfiles.darwinModules.default
davids-dotfiles.darwinModules.homeapps
"${self}/users/${myUsername}"
];

nix.settings.trusted-users = [ "root" myUsername ];
}
4 changes: 4 additions & 0 deletions modules/darwin/default/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

services.nix-daemon.enable = true;

homebrew.enable = true;

homebrew.casks = [ "gpg-suite" "iterm2" ];

# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh = {
enable = true; # default shell on catalina
Expand Down
12 changes: 12 additions & 0 deletions modules/darwin/homeapps/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
homebrew.casks = [
"calibre"
"discord"
"google-drive"
"signal"
"slack"
"spotify"
"syncthing"
"zoom"
];
}
25 changes: 25 additions & 0 deletions modules/home/default/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,31 @@ in {
};
};

config.targets.darwin.defaults = {
NSGlobalDomain = {
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;

AppleMetricUnits = true;
AppleLocale = "en_US";
};

"com.apple.desktopservices" = {
DSDontWriteNetworkStores = true;
DSDontWriteUSBStores = true;
};

"com.apple.finder" = {
AppleShowAllFiles = true;
ShowPathBar = true;
ShowStatusBar = true;
};

};

config.programs.zsh.envExtra = mkIf brew.enable ''
export HOMEBREW_PREFIX="${brew.prefix}"
export PATH="${brew.prefix}/bin:$PATH"
Expand Down

0 comments on commit 565c7b2

Please sign in to comment.