dotfiles/module/home-manager.nix
2025-12-15 14:20:44 +01:00

140 lines
2.9 KiB
Nix

{ email }: { pkgs, ... }: {
home.file.".clojure/deps.edn".source = ../config/clojure/deps.edn;
targets.darwin.defaults = {
NSGlobalDomain = {
AppleLanguages = [ "en" "de" ];
AppleLocale = "en_US";
AppleMeasurementUnits = "Centimeters";
AppleMetricUnits = true;
AppleTemperatureUnit = "Celsius";
};
};
home.packages = with pkgs; [
babashka
bottom
btop
bun
cascadia-code
clj-kondo
cloc
cmake
coreutils
curl
fira-code
gnupg
htop
imagemagick
iosevka-comfy.comfy
iosevka-comfy.comfy-motion-duo
jetbrains-mono
jq
kubectl
ledger
nixd
nixpkgs-fmt
nodejs
nodePackages.typescript-language-server
nodePackages.vscode-json-languageserver
noto-fonts
pass
python312Packages.flake8
python312Packages.isort
python312Packages.rope
python312Packages.pyflakes
python312Packages.python-lsp-server
python312Packages.pyls-isort
python312Packages.python-lsp-black
python312Packages.pylsp-rope
ripgrep
tree
typescript
wget
];
home.stateVersion = "24.11";
home.sessionVariables = {
PAGER = "less";
CLICOLOR = 1;
EDITOR = "emacs";
LOGSEQ_DIR = "~/Logseq/Me/";
};
programs = {
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
fzf = {
enable = true;
enableZshIntegration = true;
};
git = {
enable = true;
settings = {
core.editor = "emacsclient -c -a ''";
init.defaultBranch = "main";
pull.rebase = true;
rebase.updateRefs = true;
user.name = "Tobias Ostner";
user.email = email;
};
};
opencode = {
enable = true;
};
starship = {
enable = true;
enableZshIntegration = true;
settings = {
gcloud.disabled = true;
aws.disabled = true;
hostname.style = "bold green";
};
};
zoxide = {
enable = true;
enableZshIntegration = true;
};
zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
initContent = builtins.readFile ../config/zsh/zshrc;
syntaxHighlighting.enable = true;
shellAliases = {
ls = "ls --color=auto -F";
emacs = "emacsclient -c -a ''";
};
};
};
launchd.agents.disable-hotkey = {
enable = true;
config = {
ProgramArguments = [
"defaults"
"write"
"com.apple.symbolichotkeys"
"AppleSymbolicHotKeys"
"-dict-add"
"70"
"<dict><key>enabled</key><false/></dict>"
];
RunAtLoad = true;
};
};
xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml;
xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config;
}