dotfiles/.config/nix/users/ziro/darwin.nix
Ahmad Ansori Palembani 98d28abc3f
refactor(nix): More split
Also added floorp, but not functional at the moment, it requires 24.11
2024-10-18 21:06:26 +07:00

24 lines
712 B
Nix

{ pkgs, config, vars, ... }:
{
home.homeDirectory = "/Users/ziro";
programs.browserpass = {
enable = true;
browsers = [ "brave" "chrome" ]; # Arc and Chrome share the same `Application Support` dir, not sure why tbh.
};
# Swap CapsLock with Esc for better vi-mode experience.
launchd.agents.CapsEscSwap = {
enable = true;
config = {
ProgramArguments = [
"/usr/bin/hidutil"
"property"
"--set"
''{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029},{"HIDKeyboardModifierMappingSrc":0x700000029,"HIDKeyboardModifierMappingDst":0x700000039}]}''
];
RunAtLoad = true;
};
};
}