all my dotfiles in the form of a nixos configuration
0
fork

Configure Feed

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

home: setup chezmoi, move fish configuration into it

foxgirl.engineering 9408336d 164d0801

verified
+53 -101
+1
.chezmoiroot
··· 1 + config
config/emacs-config.org config-old/emacs-config.org
config/mkcert-rootCA.pem config-old/mkcert-rootCA.pem
+39
config/private_dot_config/fish/config.fish
··· 1 + status is-interactive; and begin 2 + abbr --add -- nix-clean 'sudo nix-collect-garbage -d && nix store optimise' 3 + abbr --add -- nix-search 'nix search nixpkgs' 4 + abbr --add -- vim nvim 5 + 6 + alias eza 'eza --icons auto --color auto --git -b -h' 7 + abbr --add -- la 'eza -a' 8 + abbr --add -- ll 'eza -l' 9 + abbr --add -- lla 'eza -la' 10 + abbr --add -- ls eza 11 + abbr --add -- lt 'eza --tree' 12 + abbr --add -- lta 'eza --tree -a' 13 + 14 + set -g fish_color_command blue 15 + set -g fish_color_param cyan 16 + set -g fish_color_redirection cyan 17 + set -g fish_color_end green 18 + set -g fish_color_quote yellow 19 + set -g fish_color_error red 20 + 21 + set -g VIRTUAL_ENV_DISABLE_PROMPT 1 22 + set -U fish_greeting 23 + set -gx GPG_TTY (tty) 24 + 25 + fish_vi_key_bindings 26 + bind \eh prevd-or-backward-word 27 + bind \el nextd-or-forward-word 28 + 29 + starship init fish | source 30 + jump shell fish | source 31 + direnv hook fish | source 32 + nix-your-shell --nom fish | source 33 + 34 + if set -q GHOSTTY_RESOURCES_DIR 35 + source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish" 36 + end 37 + 38 + krabby random --no-title 39 + end
+2 -1
home/modules/common.nix
··· 9 9 ]; 10 10 11 11 home.packages = with pkgs; [ 12 + chezmoi 12 13 forgejo-cli 13 14 ]; 14 15 ··· 96 97 97 98 home.file = { 98 99 # Link the mkcert root certificate where it expects to find it 99 - ".local/share/mkcert/rootCA.pem".source = ../../config/mkcert-rootCA.pem; 100 + ".local/share/mkcert/rootCA.pem".source = ../../config-old/mkcert-rootCA.pem; 100 101 101 102 # And the certificate key from the system agenix activation 102 103 ".local/share/mkcert/rootCA-key.pem".source =
+1 -1
home/modules/emacs.nix
··· 44 44 tangledConfig = pkgs.stdenv.mkDerivation { 45 45 name = "hm-emacs-tangled-config"; 46 46 47 - src = ../../config/emacs-config.org; 47 + src = ../../config-old/emacs-config.org; 48 48 phases = "buildPhase installPhase"; 49 49 50 50 buildPhase = ''
-1
home/modules/ghostty.nix
··· 1 1 { 2 2 programs.ghostty = { 3 3 enable = true; 4 - enableFishIntegration = true; 5 4 6 5 settings = { 7 6 font-family = [
+3 -92
home/modules/shell.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - programs.fish = { 5 - enable = true; 6 - functions = { 7 - pnpx = { 8 - description = "Run command from Node package"; 9 - body = '' 10 - set -l pnpx_command (which pnpx 2> /dev/null) 11 - if [ -n "$pnpx_command" ] 12 - $pnpx_command $argv 13 - else 14 - nix-shell -p pnpm nodejs --run "pnpx $argv" 15 - end 16 - ''; 17 - }; 18 - 19 - pnpc = { 20 - description = "Initialize a project with pnpm create"; 21 - body = '' 22 - set -l pnpm_command (which pnpm 2> /dev/null) 23 - if [ -n "$pnpm_command" ] 24 - $pnpm_command create $argv 25 - else 26 - nix-shell -p pnpm nodejs --run "pnpm create $argv" 27 - end 28 - ''; 29 - }; 30 - }; 31 - 32 - shellAbbrs = { 33 - l = "ll"; 34 - vim = "nvim"; 35 - 36 - nix-clean = "sudo nix-collect-garbage -d && nix store optimise"; 37 - nix-search = "nix search nixpkgs"; 38 - 39 - fj = "fj -H git.isincredibly.gay"; 40 - }; 41 - 42 - plugins = [ 43 - { 44 - name = "plugin-git"; 45 - inherit (pkgs.fishPlugins.plugin-git) src; 46 - } 47 - ]; 48 - 49 - interactiveShellInit = '' 50 - set -g fish_color_command blue 51 - set -g fish_color_param cyan 52 - set -g fish_color_redirection cyan 53 - set -g fish_color_end green 54 - set -g fish_color_quote yellow 55 - set -g fish_color_error red 56 - 57 - # Vim keybindings 58 - fish_vi_key_bindings 59 - 60 - # Bind H and L in normal mode to move back/forward in directory history 61 - bind \eh prevd-or-backward-word 62 - bind \el nextd-or-forward-word 63 - 64 - # Stop virtualenv from modifiying prompt 65 - set -g VIRTUAL_ENV_DISABLE_PROMPT 1 66 - 67 - # No help message 68 - set -U fish_greeting 69 - 70 - # Setup jump 71 - ${pkgs.jump}/bin/jump shell fish | source 72 - 73 - # Pokemon :3 74 - ${pkgs.krabby}/bin/krabby random --no-title 75 - ''; 76 - }; 77 - 78 4 # Enable Catppuccin theming 79 5 catppuccin.fish.enable = true; 80 6 81 7 # Enable eza for a much nicer ls 82 - programs.eza = { 83 - enable = true; 84 - enableFishIntegration = true; 85 - colors = "auto"; 86 - git = true; 87 - icons = "auto"; 88 - extraOptions = [ 89 - "-b" # Binary size prefixes 90 - "-h" # Add a header for each column 91 - ]; 92 - }; 8 + programs.eza.enable = true; 93 9 94 10 # Enable hyfetch for fancy termial systeminfo 95 11 programs.hyfetch = { ··· 107 23 # Enable nix-your-shell to ensure nix-shell calls start a fish shell 108 24 programs.nix-your-shell = { 109 25 enable = true; 110 - enableFishIntegration = true; 111 - }; 112 - 113 - # Enable `pay-respects` for correcting commands 114 - programs.pay-respects = { 115 - enable = true; 116 - enableFishIntegration = true; 26 + nix-output-monitor.enable = true; 117 27 }; 118 28 119 29 # Add some extra shell hook packages 120 30 home.packages = with pkgs; [ 121 31 git-diffie 122 32 jump 33 + krabby 123 34 ]; 124 35 }
-1
home/modules/starship.nix
··· 1 1 { 2 2 programs.starship = { 3 3 enable = true; 4 - enableFishIntegration = true; 5 4 6 5 settings = { 7 6 format = ''
+2
nixpkgs/packages/default.nix
··· 11 11 12 12 frankerfacez = prev.callPackage ./frankerfacez.nix { }; 13 13 14 + glide-browser = prev.callPackage ./glide-browser.nix { }; 15 + 14 16 go-grip = prev.callPackage ./go-grip.nix { }; 15 17 16 18 # Version 2.0.0-rc1, not in nixpkgs
+3 -3
npins/sources.json
··· 113 113 }, 114 114 "branch": "master", 115 115 "submodules": false, 116 - "revision": "f56bf065f9abedc7bc15e1f2454aa5c8edabaacf", 117 - "url": "https://github.com/nix-community/home-manager/archive/f56bf065f9abedc7bc15e1f2454aa5c8edabaacf.tar.gz", 118 - "hash": "0r6skg17si9x8spfkcp9jafvrxjlwmh1pli7hyzgjwkdbqd4rqvb" 116 + "revision": "1a09eb84fa9e33748432a5253102d01251f72d6d", 117 + "url": "https://github.com/nix-community/home-manager/archive/1a09eb84fa9e33748432a5253102d01251f72d6d.tar.gz", 118 + "hash": "06a62pr21rmdl2n2d4h407sa2avm9m4ak5fai04bccbagg4y39ms" 119 119 }, 120 120 "hyprlock": { 121 121 "type": "Git",
+1 -1
system/common.nix
··· 170 170 }; 171 171 172 172 # Add local root certificate generated by mkcert to system trust store 173 - security.pki.certificateFiles = [ ../config/mkcert-rootCA.pem ]; 173 + security.pki.certificateFiles = [ ../config-old/mkcert-rootCA.pem ]; 174 174 175 175 # Setup the root certificate private key from agenix 176 176 age.secrets.mkcert-key = {
+1 -1
system/modules/rebuild.nix
··· 12 12 options.srxl.rebuild = { 13 13 configLocation = lib.mkOption { 14 14 type = lib.types.str; 15 - default = "/home/ruby/nixos"; 15 + default = "/home/ruby/.local/share/chezmoi"; 16 16 example = "/etc/nixos"; 17 17 description = "Path to where the NixOS configuration repo is checked out on this system."; 18 18 };