dotfiles/.config/nix-darwin/modules/darwin/global.nix

81 lines
1.8 KiB
Nix
Raw Normal View History

2024-03-29 20:49:45 -04:00
{ self, pkgs, ... }:
{
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
fish
git
curl
tmux
];
environment.shells = [ pkgs.fish ];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
# nix.package = pkgs.nix;
nix.settings = {
# Necessary for using flakes on this system.
experimental-features = "nix-command flakes";
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = ["root" "sloane"];
};
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
programs.fish.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
system.defaults = {
dock = {
orientation = "bottom";
autohide = true;
autohide-delay = 0.1;
show-recents = false;
};
};
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
upgrade = true;
};
brews = [ "openssl" ];
2024-04-12 11:08:47 -04:00
taps = [
"homebrew/cask-versions"
"homebrew/cask-fonts"
];
2024-03-29 20:49:45 -04:00
casks = [
"1password"
"alfred"
2024-04-12 11:08:47 -04:00
"dash6"
2024-03-29 20:49:45 -04:00
"fantastical"
"firefox"
"karabiner-elements"
"keepingyouawake"
"kitty"
"obsidian"
"unnaturalscrollwheels"
"font-cousine-nerd-font"
2024-04-04 08:53:03 -04:00
"font-victor-mono-nerd-font"
"font-recursive-mono-nerd-font"
2024-03-29 20:49:45 -04:00
];
masApps = {
"Things 3" = 904280696;
};
};
}