1
0
Fork 0
dotfiles/.config/home-manager/darwin.nix

87 lines
2.1 KiB
Nix

{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
# base system packages + packages what I *need*
coreutils-prefixed
gawk
gnugrep
gnused
tmux
watch
# for media consumption, manipulation and metadata info
ffmpeg
imagemagick
mediainfo
# fonts
(nerdfonts.override {
fonts = [
"FiraCode"
"Overpass"
"SourceCodePro"
];
})
];
# TODO: install the following with brew
# alacritty
# bash
# homebrew/cask/mpv
# utm
# home-manager does not need to overwrite these files in $HOME
xdg.configFile = {
};
home.file = {
".bash_profile".enable = false;
".bashrc".enable = false;
".profile".enable = false;
};
xdg.dataFile = {
"nix-bash/bash_completion.sh" = {
enable = true;
executable = true;
source = "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh";
};
};
targets.darwin = {
currentHostDefaults = {
"com.apple.controlcenter".BatteryShowPercentage = true;
};
defaults = {
NSGlobalDomain = {
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
};
"com.apple.Safari" = {
AutoFillCreditCardData = false;
AutoFillPasswords = false;
AutoOpenSafeDownloads = false;
IncludeDevelopMenu = true;
ShowOverlayStatusBar = true;
};
"com.apple.desktopservices" = {
DSDontWriteNetworkStores = true;
DSDontWriteUSBStores = true;
};
"com.apple.dock" = {
expose-group-apps = false;
size-immutable = false;
tilesize = 32;
};
};
# https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
keybindings = {
"^\Uf702" = "moveWordLeft:"; # Ctrl-<Left>
"^\Uf703" = "moveWordRight:"; # Ctrl-<Right>
};
};
}