This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/home.nix
T

83 lines
2.1 KiB
Nix

{ config, pkgs, lib, ... }:
{
home.username = "johannes";
home.homeDirectory = if pkgs.stdenv.isDarwin then "/Users/johannes" else "/home/johannes";
home.stateVersion = "24.05";
home.packages = with pkgs; [
git
curl
wget
neovim
ripgrep
fd
nushell
starship
zoxide
lazygit
fastfetch
atuin
zellij
herdr
unp
carapace
bun
nodejs
pipx
python3
uv
rustup
cargo-binstall
mise
television
pay-respects
sops
age
];
home.file = {
".config" = {
source = ./config;
recursive = true;
};
".config/yazi".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/yazi";
".config/zed".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/zed";
".config/btop".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/btop";
".config/lazygit".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/mutable_config/lazygit";
".local/share" = {
source = ./local_share;
recursive = true;
};
".local/bin" = {
source = ./local_bin;
recursive = true;
};
".agents" = {
source = ./agents;
recursive = true;
};
".pi/agent/settings.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/agent/settings.json";
};
age.identityPaths = [ "${config.home.homeDirectory}/.config/age/keys.txt" ];
age.secrets."git_config" = {
file = ./secrets/git_config.age;
path = "${config.home.homeDirectory}/.config/git/config";
};
age.secrets."jj_config" = {
file = ./secrets/jj_config.age;
path = "${config.home.homeDirectory}/.config/jj/config.toml";
};
fonts.fontconfig.enable = true;
home.activation.cloneNvim = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -d "$HOME/.config/nvim" ]; then
${pkgs.git}/bin/git clone https://github.com/jokresner/nvim "$HOME/.config/nvim"
fi
'';
programs.home-manager.enable = true;
}