From a7104c659bf6193e0512bfd617072a987f0ff119 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 23 Mar 2025 20:05:12 +0100 Subject: [PATCH] feat(andronix): load cross-platform home-manager modules. --- hosts/andronix/home.nix | 145 +--------------------------------------- 1 file changed, 2 insertions(+), 143 deletions(-) diff --git a/hosts/andronix/home.nix b/hosts/andronix/home.nix index d8844b9..6115637 100644 --- a/hosts/andronix/home.nix +++ b/hosts/andronix/home.nix @@ -6,149 +6,8 @@ # Read the changelog before changing this value home.stateVersion = "24.05"; - # Packahes - home.packages = with pkgs; [ - alejandra - ]; - - imports = [inputs.nvf.homeManagerModules.default]; - - programs.zsh = { - enable = true; - enableCompletion = true; - autosuggestion.enable = true; - historySubstringSearch.enable = true; - - dotDir = ".config/zsh"; - - initExtra = '' - # VI Mode escape timeout fix - export KEYTIMEOUT=1 - - # Substring search settings - export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold" - export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold' - bindkey -M vicmd 'k' history-substring-search-up - bindkey -M vicmd 'j' history-substring-search-down - - [[ -f "$HOME/.config/zsh/functions.zsh" ]] && source "$HOME/.config/zsh/functions.zsh" - ''; - - initExtraFirst = '' - # Tmux autostart - if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then - exec tmux new-session -A -s default >/dev/null 2>&1 - fi - ''; - - antidote = { - enable = true; - plugins = [ - "zap-zsh/supercharge" - "zap-zsh/completions" - "zap-zsh/vim" - "chivalryq/git-alias" - "zdharma-continuum/fast-syntax-highlighting" - "zsh-users/zsh-history-substring-search" - "MichaelAquilina/zsh-you-should-use" - ]; - }; - }; - - # Enable git - programs.git = { - enable = true; - userName = "Crony Akatsuki"; - userEmail = "crony@cronyakatsuki.xyz"; - }; - - # Install fzf - programs.fzf = { - enable = true; - enableZshIntegration = true; - defaultCommand = "fd --type f"; - }; - - # Install starship - programs.starship = { - enable = true; - enableZshIntegration = true; - settings = { - add_newline = false; - }; - }; - - # Install zoxide - programs.zoxide = { - enable = true; - enableZshIntegration = true; - }; - - # Install eza - programs.eza = { - enable = true; - enableZshIntegration = true; - git = true; - icons = "always"; - }; - - # Install bat - programs.bat.enable = true; - - # Install fd - programs.fd.enable = true; - - # Install ripgrep - programs.ripgrep.enable = true; - - # Install direnv - programs.direnv = { - enable = true; - enableZshIntegration = true; - nix-direnv.enable = true; - }; - - # Install neovim - programs.nvf = { - enable = true; - settings.vim = { - viAlias = true; - vimAlias = true; - - options = { - tabstop = 2; - shiftwidth = 2; - expandtab = true; - softtabstop = 2; - updatetime = 50; - scrolloff = 5; - signcolumn = "no"; - ignorecase = true; - smartcase = true; - laststatus = 3; - }; - - undoFile.enable = true; - - lsp.enable = true; - - autocomplete.nvim-cmp.enable = true; - - languages = { - enableLSP = true; - enableTreesitter = true; - enableFormat = true; - - nix.enable = true; - }; - - theme = { - enable = true; - name = "gruvbox"; - style = "dark"; - }; - }; - }; + # Import modules I need + imports = [inputs.nvf.homeManagerModules.default ../../modules/cross-platform/home-manager]; stylix = { enable = true;