From 7608e0f93431daa7b68c415439bbc9aac49c6b2f Mon Sep 17 00:00:00 2001 From: cnst Date: Thu, 31 Oct 2024 19:05:48 +0100 Subject: [PATCH] remove dead code --- users/cnst/default.nix | 1 - users/cnst/shell.nix | 89 ------------------------------------- users/toothpick/default.nix | 1 - 3 files changed, 91 deletions(-) delete mode 100644 users/cnst/shell.nix diff --git a/users/cnst/default.nix b/users/cnst/default.nix index efcb42d6..c8f6d0f0 100644 --- a/users/cnst/default.nix +++ b/users/cnst/default.nix @@ -11,7 +11,6 @@ imports = [ ./modules.nix ./git.nix - # ./shell.nix ]; # ++ lib.optionals isCnixpad [./cpmodules.nix]; diff --git a/users/cnst/shell.nix b/users/cnst/shell.nix deleted file mode 100644 index cc347a72..00000000 --- a/users/cnst/shell.nix +++ /dev/null @@ -1,89 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: let - inherit (lib.meta) getExe; - inherit (pkgs) eza bat; -in { - programs.zsh = { - enable = true; - dotDir = ".config/zsh"; - enableCompletion = true; - autosuggestion.enable = true; - syntaxHighlighting.enable = true; - - shellAliases = { - cat = "${getExe bat} --style=plain"; - ls = "${getExe eza} -h --git --icons --color=auto --group-directories-first -s extension"; - la = "${getExe eza} -lah --tree"; - tree = "${getExe eza} --tree --icons=always"; - extract = "extract.sh"; - usermodules = "$EDITOR /home/$USER/.nix-config/users/$USER/modules.nix"; - umod = "$EDITOR /home/$USER/.nix-config/users/$USER/modules.nix"; - systemmodules = "$EDITOR /home/$USER/.nix-config/hosts/$HOST/modules.nix"; - smod = "$EDITOR /home/$USER/.nix-config/hosts/$HOST/modules.nix"; - nixcleanboot = "sudo nix run /home/$USER/.nix-config#cleanup-boot"; - nixclean = "nh clean all --keep 3"; - nixdev = "nix develop ~/.nix-config -c $SHELL"; - nixconfig = "cd /home/$USER/.nix-config/"; - ll = "ls -l"; - nixupdate = "nh os switch -v -H $HOST"; - nixup = "nh os switch -H $HOST"; - flakeupdate = "nh os switch -u -v -H $HOST"; - flakeup = "nh os switch -u -H $HOST"; - ".." = "cd .."; - "..." = "cd ../../"; - "...." = "cd ../../../"; - "....." = "cd ../../../../"; - "......" = "cd ../../../../../"; - }; - history = { - size = 1000; - path = "${config.xdg.dataHome}/zsh/history"; - }; - oh-my-zsh = { - enable = true; - plugins = [ - "git" - ]; - theme = "robbyrussell"; - }; - profileExtra = '' - export PATH="$HOME/.local/bin:$PATH" - ''; - initExtraFirst = '' - autoload -U colors && colors - ''; - initExtra = '' - ZSH_THEME_GIT_PROMPT_PREFIX="%F{143}(%F{167}" - ZSH_THEME_GIT_PROMPT_SUFFIX="%f " - ZSH_THEME_GIT_PROMPT_DIRTY="%F{143}) %F{202}%1{✗%}" - ZSH_THEME_GIT_PROMPT_CLEAN="%F{143})" - - ZSH_THEME_RUBY_PROMPT_PREFIX="%F{167}‹" - ZSH_THEME_RUBY_PROMPT_SUFFIX="›%f" - - # Check if we're in a nix-shell or nix develop environment - if [[ -n "$IN_NIX_SHELL" ]]; then - PROMPT='%F{red}DEV%f%F{143}%~%f $(git_prompt_info)$(virtualenv_prompt_info) - %F{143}$ ' - else - PROMPT='%F{143}%~%f $(git_prompt_info)$(virtualenv_prompt_info) - %F{143}$ ' - fi - - RPROMPT='$(ruby_prompt_info)' - - VIRTUAL_ENV_DISABLE_PROMPT=0 - ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %F{66}🐍 " - ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%f" - ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX - ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX - - ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241' - microfetch - ''; - }; -} diff --git a/users/toothpick/default.nix b/users/toothpick/default.nix index a6b4ee00..aac1e1f5 100644 --- a/users/toothpick/default.nix +++ b/users/toothpick/default.nix @@ -2,7 +2,6 @@ imports = [ ./modules.nix ./git.nix - ./shell.nix ]; home = { username = "toothpick";