mirror of
https://github.com/genebean/dots.git
synced 2026-05-31 07:45:20 -04:00
Not using the Home Manager module to manage WezTerm due to using Homebrew to install it on macOS. Large parts of this came from Gemini but little bits here and there also came from ChatGPT and Claude (aka whatever I could use at the moment). Co-authored-by: Gemini <gemini@google.com> Co-authored-by: ChatGPT <chatgpt@openai.com> Co-authored-by: Claude <claude@anthropic.com>
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
system,
|
|
username,
|
|
...
|
|
}:
|
|
{
|
|
home.stateVersion = "25.05";
|
|
|
|
dconf.settings = {
|
|
# This is so that SUPER + D, the default for showing the desktop
|
|
# in GNOME, can instead be used by WezTerm
|
|
"org/gnome/desktop/wm/keybindings" = {
|
|
show-desktop = [ ];
|
|
};
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
age
|
|
home-manager
|
|
sops
|
|
ssh-to-age
|
|
];
|
|
|
|
# home-manager switch --flake ~/repos/dots
|
|
programs.zsh.shellAliases = {
|
|
nixdiff = "cd ~/repos/dots && home-manager build --flake .#${username}-${system} && nvd diff ${config.home.homeDirectory}/.local/state/nix/profiles/home-manager result";
|
|
nixup = "home-manager switch --flake ~/repos/dots#${username}-${system}";
|
|
pbcopy = "wl-copy";
|
|
};
|
|
|
|
sops = {
|
|
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
|
|
defaultSopsFile = ./secrets.yaml;
|
|
secrets = {
|
|
local_git_config.path = "${config.home.homeDirectory}/.gitconfig-local";
|
|
local_private_env.path = "${config.home.homeDirectory}/.private-env";
|
|
};
|
|
};
|
|
|
|
xdg.configFile."wezterm/wezterm.lua".source = ../../shared/files/wezterm/wezterm.lua;
|
|
}
|