Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove starship

+36 -69
+4 -4
flake.lock
··· 325 325 ] 326 326 }, 327 327 "locked": { 328 - "lastModified": 1716729631, 329 - "narHash": "sha256-IerjU5GUeKc0eW9FPOdlPveSGJ2ZrO+lIfuHPUmUF2I=", 328 + "lastModified": 1735344290, 329 + "narHash": "sha256-oJDtWPH1oJT34RJK1FSWjwX4qcGOBRkcNQPD0EbSfNM=", 330 330 "owner": "nix-community", 331 331 "repo": "home-manager", 332 - "rev": "fc4492181833eaaa7a26a8081c0615d95792d825", 332 + "rev": "613691f285dad87694c2ba1c9e6298d04736292d", 333 333 "type": "github" 334 334 }, 335 335 "original": { 336 336 "owner": "nix-community", 337 - "ref": "release-23.05", 337 + "ref": "release-24.11", 338 338 "repo": "home-manager", 339 339 "type": "github" 340 340 }
+1 -1
flake.nix
··· 34 34 flake-utils.url = "github:numtide/flake-utils"; 35 35 36 36 home-manager = { 37 - url = "github:nix-community/home-manager/release-23.05"; 37 + url = "github:nix-community/home-manager/release-24.11"; 38 38 inputs.nixpkgs.follows = "nixpkgs"; 39 39 }; 40 40
+27 -63
home/base/shell.nix
··· 10 10 description = "Shell"; 11 11 type = types.bool; 12 12 }; 13 - 14 - enableStarship = mkOption { 15 - default = cfg.enable; 16 - description = "Starship"; 17 - type = types.bool; 18 - }; 19 13 }; 20 14 21 15 config = mkIf cfg.enable { 22 16 programs.zsh = { 23 17 enable = true; 24 - enableAutosuggestions = true; 25 - 26 - enableCompletion = false; 27 - 18 + enableCompletion = true; 19 + enableVteIntegration = true; 20 + autosuggestion.enable = true; 21 + syntaxHighlighting.enable = true; 28 22 shellAliases = { 29 23 ls = "ls --color=auto"; 30 24 ll = "ls -l"; 31 25 wx = "wezmux"; 32 26 http = "xh"; 33 27 }; 34 - 35 - initExtra = '' 36 - function update_title_preexec { 37 - emulate -L zsh 38 - setopt extended_glob 39 - local title=''${1[(wr)^(*=*|sudo|ssh|mosh|rake|-*)]:gs/%/%%} 40 - printf "\e]0;%s\e\\" "$title" 41 - } 42 - function update_title_precmd { 43 - emulate -L zsh 44 - setopt extended_glob 45 - local title=''${PWD##*/} 46 - printf "\e]0;%s\e\\" "$title" 47 - } 48 - 49 - add-zsh-hook preexec update_title_preexec 50 - add-zsh-hook precmd update_title_precmd 51 - ''; 52 - 28 + sessionVariables = { 29 + KEYTIMEOUT = "1"; 30 + VIM_MODE_TRACK_KEYMAP = "no"; 31 + MODE_INDICATOR = ""; 32 + PURE_GIT_PULL = "0"; 33 + PURE_PROMPT_SYMBOL = "➜"; 34 + PURE_PROMPT_VICMD_SYMBOL = "➜"; 35 + PURE_GIT_UP_ARROW = " "; 36 + PURE_GIT_DOWN_ARROW = " "; 37 + PURE_GIT_STASH_SYMBOL = " "; 38 + }; 53 39 plugins = [ 54 40 { 55 - name = "zsh-syntax-highlighting"; 56 - src = pkgs.fetchFromGitHub { 57 - owner = "zsh-users"; 58 - repo = "zsh-syntax-highlighting"; 59 - rev = "91d2eeaf23c47341e8dc7ad66dbf85e38c2674de"; 60 - sha256 = "1160bbhpd2p6qlw1b5k86z243iv0yhv6x7pf414sr8q4cm59x2h0"; 61 - }; 41 + name = "pure-prompt"; 42 + file = "share/zsh/site-functions/async"; 43 + src = pkgs.pure-prompt; 44 + } 45 + { 46 + name = "pure-prompt"; 47 + file = "share/zsh/site-functions/prompt_pure_setup"; 48 + src = pkgs.pure-prompt; 62 49 } 63 50 ]; 51 + initExtra = /*sh*/'' 52 + setopt NO_NOMATCH 53 + stty -ixon -ixoff 54 + ''; 64 55 }; 65 56 66 57 programs.direnv = { ··· 74 65 enableZshIntegration = true; 75 66 enableNushellIntegration = mkDefault false; 76 67 enableFishIntegration = mkDefault false; 77 - }; 78 - 79 - programs.starship = mkIf cfg.enableStarship { 80 - enable = true; 81 - enableZshIntegration = true; 82 - 83 - settings = { 84 - add_newline = false; 85 - gcloud.disabled = true; 86 - aws.disabled = true; 87 - cmd_duration.disabled = true; 88 - battery.disabled = true; 89 - nodejs.disabled = true; 90 - deno.disabled = true; 91 - character.success_symbol = "[➜](green)"; 92 - character.error_symbol = "[➜](bold red)"; 93 - git_branch.symbol = " "; 94 - git_commit.tag_symbol = " "; 95 - git_status.format = "([$all_status]($style))"; 96 - git_status.conflicted = " "; 97 - git_status.untracked = " "; 98 - git_status.modified = " "; 99 - git_status.staged = " "; 100 - git_status.deleted = " "; 101 - git_status.renamed = " "; 102 - git_status.stashed = " "; 103 - }; 104 68 }; 105 69 }; 106 70 }
+4 -1
lib/system.nix
··· 39 39 inherit age; 40 40 41 41 manual.manpages.enable = false; 42 - home.stateVersion = "23.05"; 43 42 xdg.enable = true; 43 + home = { 44 + stateVersion = "25.05"; 45 + enableNixpkgsReleaseCheck = false; 46 + }; 44 47 45 48 imports = [ 46 49 inputs.agenix.homeManagerModules.default