dotfiles/.config/nix/users/ziro/darwin.nix
Ahmad Ansori Palembani 26c9cfbaed
refactor(nix): Mix stable and unstable packages
Also replace inkscape with brew cask inkscape on macOS
2024-11-02 10:06:35 +07:00

28 lines
924 B
Nix

{ pkgs, pkgs-unstable, 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.
};
home.file."Library/Application Support/Floorp/native-messaging-hosts/passff.json".source = "${pkgs.passff-host}/share/passff-host/passff.json";
# 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;
};
};
home.sessionVariables.MOZ_LEGACY_PROFILES = 1;
}