my NixOS and nix-darwin config
0
fork

Configure Feed

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

.

+60 -6
+19
.direnv/bin/nix-direnv-reload
··· 1 + #!/usr/bin/env bash 2 + set -e 3 + if [[ ! -d "/Users/suri/Nyx" ]]; then 4 + echo "Cannot find source directory; Did you move it?" 5 + echo "(Looking for "/Users/suri/Nyx")" 6 + echo 'Cannot force reload with this script - use "direnv reload" manually and then try again' 7 + exit 1 8 + fi 9 + 10 + # rebuild the cache forcefully 11 + _nix_direnv_force_reload=1 direnv exec "/Users/suri/Nyx" true 12 + 13 + # Update the mtime for .envrc. 14 + # This will cause direnv to reload again - but without re-building. 15 + touch "/Users/suri/Nyx/.envrc" 16 + 17 + # Also update the timestamp of whatever profile_rc we have. 18 + # This makes sure that we know we are up to date. 19 + touch -r "/Users/suri/Nyx/.envrc" "/Users/suri/Nyx/.direnv"/*.rc
+1
.envrc
··· 1 + use flake
+3 -1
hosts/Daedalus/default.nix
··· 54 54 "tailscale-app" 55 55 "GrandPerspective" 56 56 "skim" 57 + 58 + "kicad" 57 59 ]; 58 60 masApps = { 59 61 "whatsapp" = 310633997; ··· 61 63 onActivation = { 62 64 autoUpdate = true; 63 65 upgrade = true; 64 - cleanup = "zap"; 66 + # cleanup = "zap"; 65 67 }; 66 68 }; 67 69
+35
modules/home/shells/fish/default.nix
··· 54 54 zh = "suri_zellij_session_helper"; 55 55 56 56 # cargo abbreviations 57 + ca = "cargo add"; 57 58 cr = "cargo run"; 58 59 cb = "cargo build"; 59 60 cc = "cargo check"; ··· 112 113 set output_file (string replace ".typ" ".pdf" -- $input_file) 113 114 114 115 typst watch "$input_file" "$output_file" & # Watch and compile Typst file 116 + disown 115 117 sleep 1 # Give Typst some time to generate the PDF 116 118 open "$output_file" # Open the generated PDF 119 + ''; 120 + 121 + # init a dev template 122 + dti = '' 123 + set lang $argv[1] 124 + 125 + if test (count $argv) -eq 0 126 + echo "Usage: dti <template-name>" 127 + return 1 128 + end 129 + 130 + nix flake init --template "https://flakehub.com/f/the-nix-way/dev-templates/*#$lang" 131 + jj git init 132 + jj describe -m "feat: Init" 133 + ''; 134 + 135 + # create a new dev template project 136 + dtn = '' 137 + 138 + if test (count $argv) -eq 0 139 + echo "Usage: dtn <proj_dir> <template-name>" 140 + return 1 141 + end 142 + 143 + set proj_dir $argv[1] 144 + set lang $argv[2] 145 + 146 + nix flake new --template "https://flakehub.com/f/the-nix-way/dev-templates/*#$lang" $proj_dir 147 + cd $proj_dir 148 + jj git init 149 + jj describe -m "feat: Init $proj_dir" 150 + 151 + 117 152 ''; 118 153 }; 119 154 };
+2 -5
modules/home/tools/helix/helix/languages.toml
··· 1 1 # --- Language Servers --- 2 - 3 2 [language-server.ltex] 4 3 command = "ltex-ls-plus" 5 4 ··· 9 8 [language-server.ltex.config.ltex.disabledRules] 10 9 "en-US" = ["WHITESPACE_RULE"] 11 10 12 - [language-server.rust-analyzer.config.check] 13 - command = "clippy" 11 + [language-server.rust-analyzer.config] 12 + check.command = "clippy" 14 13 15 14 [language-server.texlab] 16 15 command = "texlab" 17 - 18 - 19 16 20 17 [language-server.texlab.config.texlab.build] 21 18 onSave = true