From f8f5398d96b34adb178b9b73ee8228e78eddd329 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 22 Aug 2023 19:10:12 +0200 Subject: Remove zsh config --- user/settings/darwin.nix | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'user/settings/darwin.nix') diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix index adb69b9f..df12f1fc 100644 --- a/user/settings/darwin.nix +++ b/user/settings/darwin.nix @@ -3,43 +3,7 @@ , lib , ... }: { - nixpkgs.overlays = [ - (self: super: { - darwin-zsh-completions = - super.runCommand "darwin-zsh-completions-0.0.0" - { - preferLocalBuild = true; - } '' - mkdir -p $out/share/zsh/site-functions - cat <<-'EOF' > $out/share/zsh/site-functions/_darwin-rebuild - #compdef darwin-rebuild - #autoload - _nix-common-options - local -a _1st_arguments - _1st_arguments=( - 'switch:Build, activate, and update the current generation'\ - 'build:Build without activating or updating the current generation'\ - 'check:Build and run the activation sanity checks'\ - 'changelog:Show most recent entries in the changelog'\ - ) - _arguments \ - '--list-generations[Print a list of all generations in the active profile]'\ - '--rollback[Roll back to the previous configuration]'\ - {--switch-generation,-G}'[Activate specified generation]'\ - '(--profile-name -p)'{--profile-name,-p}'[Profile to use to track current and previous system configurations]:Profile:_nix_profiles'\ - '1:: :->subcmds' && return 0 - case $state in - subcmds) - _describe -t commands 'darwin-rebuild subcommands' _1st_arguments - ;; - esac - EOF - ''; - }) - - ]; home.packages = with pkgs; [ - darwin-zsh-completions darwin.trash ]; @@ -134,9 +98,6 @@ }; }; - programs.zsh.dirHashes = { - icloud = "$HOME/Library/Mobile\ Documents/com~apple~CloudDocs"; - }; home.shellAliases = { rb = "darwin-rebuild"; rbs = "darwin-rebuild switch --flake $(ghq list -p nixfiles)"; @@ -153,10 +114,6 @@ IdentityAgent ${config.home.sessionVariables.SSH_AUTH_SOCK} ''; - programs.zsh.envExtra = '' - SHELL_SESSIONS_DISABLE=1 - path+=($HOME/Library/Python/3.9/bin) - ''; home.activation.linkStrongboxSSHAgentSocket = lib.hm.dag.entryAfter [ "writeBoundary" ] '' if [[ ! -d ~/.strongbox ]] then -- cgit 1.4.1