33 lines
887 B
Nix
33 lines
887 B
Nix
{ pkgs, config, vars, ... }:
|
|
|
|
let
|
|
dirPrefix = if pkgs.stdenv.isDarwin then "/Users/" else "/home/";
|
|
in {
|
|
home = {
|
|
username = "ziro";
|
|
homeDirectory = dirPrefix + "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;
|
|
};
|
|
};
|
|
|
|
home.stateVersion = "24.05";
|
|
}
|