{ config, pkgs, lib, ... }: { nix.package = pkgs.nix; nixpkgs.config.allowUnfree = true; home.username = "johannes"; home.homeDirectory = if pkgs.stdenv.hostPlatform.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 devenv pi-coding-agent yazi unzip owncloud-client wl-clipboard obsidian ]; 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"; ".pi/extensions".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.dotfiles/pi/extensions"; }; 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; }