dotfiles/module/home-manager.nix
2025-04-21 17:53:35 +02:00

116 lines
2.4 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; [
bottom
babashka
cascadia-code
clj-kondo
cloc
cmake
coreutils
curl
fira-code
gnupg
htop
imagemagick
iosevka-comfy.comfy
iosevka-comfy.comfy-motion-duo
jq
kubectl
typescript
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
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;
userName = "Tobias Ostner";
userEmail = email;
extraConfig = {
core.editor = "emacsclient -c -a ''";
init.defaultBranch = "main";
pull.rebase = true;
rebase.updateRefs = 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;
initExtra = builtins.readFile ../config/zsh/zshrc;
syntaxHighlighting.enable = true;
shellAliases = {
ls = "ls --color=auto -F";
emacs = "emacsclient -c -a ''";
};
};
};
xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml;
xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config;
}