Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

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

Updates

+181 -18
+1 -1
aerc/aerc.conf
··· 57 57 # Example: "from -r date" 58 58 # 59 59 # Default: "" 60 - sort=from -r date 60 + sort="-r date from" 61 61 62 62 # Moves to next message when the current message is deleted 63 63 #
+1 -1
aerc/binds.conf
··· 52 52 [view] 53 53 q = :close<Enter> 54 54 | = :pipe<space> 55 - D = :move Trash <Enter> 55 + D = :delete<Enter> 56 56 S = :save<space> 57 57 A = :archive flat<Enter> 58 58
+53
fish/config.fish
··· 1 + set -x EDITOR 'nvim' 2 + set -x VISUAL 'nvim' 3 + set -x LPASS_CLIPBOARD_COMMAND wl-copy 4 + set -x MOZ_ENABLE_WAYLAND 1 5 + set -x LS_OPTIONS "--color=auto" 6 + set -x LESS '-F -g -i -M -R -S -w -X -z-4' 7 + {%@@ if profile == 'touma' @@%} 8 + set -lx DISPLAY (cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 9 + {%@@ endif @@%} 10 + 11 + #alias artiq "conda activate artiq" 12 + if type -q "multipass" 13 + alias mp "multipass" 14 + end 15 + abbr gp "git pull --rebase" 16 + abbr gu "git push" 17 + abbr gc "git commit" 18 + abbr gs "git status" 19 + abbr gb "git branch" 20 + abbr gd "git diff" 21 + abbr ga "git add" 22 + abbr glog "git log –graph –decorate –oneline –all" 23 + if type -q "emanote" 24 + abbr n "cd ~/repos/notes" 25 + abbr ne "cd ~/repos/notes; nvim" 26 + end 27 + 28 + if test -d "~/repos" 29 + alias r "cd ~/repos" 30 + end 31 + 32 + # PATH stuff 33 + 34 + # Run ssh-agent 35 + if test -z "(pgrep ssh-agent)" 36 + eval (ssh-agent -c) > /dev/null # no output 37 + set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK 38 + set -Ux SSH_AGENT_PID $SSH_AGENT_PID 39 + set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK 40 + end 41 + 42 + if type -q "direnv" 43 + direnv hook fish | source 44 + set -g direnv_fish_mode eval_on_arrow 45 + end 46 + 47 + if type -q "kitty" 48 + alias icat="kitty +kitten icat" 49 + alias d="kitty +kitten diff" 50 + end 51 + 52 + # Keybindings 53 + fish_default_key_bindings
+4
fish/functions/fish_user_key_bindings.fish
··· 1 + function fish_user_key_bindings 2 + fzf_key_bindings 3 + bind \co 'lfcd; commandline -f repaint' 4 + end
+27
fish/functions/lfcd.fish
··· 1 + # Change working dir in fish to last dir in lf on exit (adapted from ranger). 2 + # 3 + # You may put this file to a directory in $fish_function_path variable: 4 + # 5 + # mkdir -p ~/.config/fish/functions 6 + # ln -s "/path/to/lfcd.fish" ~/.config/fish/functions 7 + # 8 + # You may also like to assign a key to this command: 9 + # 10 + # bind \co 'lfcd; commandline -f repaint' 11 + # 12 + # You need to put this in a function called fish_user_key_bindings. 13 + 14 + function lfcd 15 + set tmp (mktemp) 16 + lf -last-dir-path=$tmp $argv 17 + if test -f "$tmp" 18 + set dir (cat $tmp) 19 + rm -f $tmp 20 + if test -d "$dir" 21 + if test "$dir" != (pwd) 22 + cd $dir 23 + ls 24 + end 25 + end 26 + end 27 + end
+6
fish/functions/paths.fish
··· 1 + function paths 2 + set -l new_path $argv[1] 3 + echo "Adding $new_path to PATH" 4 + set -U fish_user_paths $new_path $fish_user_paths 5 + end 6 +
+4
fish/functions/t.fish
··· 1 + function t 2 + cd (mktemp -d /tmp/$1.XXXX) 3 + end 4 +
+52
i3status/config
··· 1 + # i3status configuration file. 2 + # see "man i3status" for documentation. 3 + 4 + # It is important that this file is edited as UTF-8. 5 + # The following line should contain a sharp s: 6 + # ß 7 + # If the above line is not correctly displayed, fix your editor first! 8 + 9 + general { 10 + colors = false 11 + interval = 5 12 + } 13 + 14 + order += "disk /" 15 + order += "wireless _first_" 16 + order += "ethernet _first_" 17 + order += "load" 18 + order += "volume master" 19 + order += "tztime local" 20 + 21 + wireless _first_ { 22 + format_up = "W: (%quality at %essid) %ip" 23 + format_down = "W: down" 24 + } 25 + 26 + #ethernet _first_ { 27 + # # if you use %speed, i3status requires root privileges 28 + # format_up = "E: %ip (%speed)" 29 + # format_down = "E: down" 30 + #} 31 + 32 + battery all { 33 + format = "%status %percentage %remaining" 34 + } 35 + 36 + tztime local { 37 + format = "%Y-%m-%d %H:%M:%S" 38 + } 39 + 40 + load { 41 + format = "CPU: %1min" 42 + } 43 + 44 + disk "/" { 45 + format = "%avail" 46 + } 47 + 48 + volume master { 49 + format = "♪: %volume" 50 + format_muted = "♪: muted (%volume)" 51 + device = "pulse" 52 + }
+12 -2
noah-home.nix
··· 55 55 programs.neovim = { 56 56 enable = true; 57 57 defaultEditor = true; 58 - extraPackages = [ 58 + extraPackages = with pkgs; [ 59 59 fzf 60 60 ripgrep 61 61 luarocks ··· 174 174 recursive = true; 175 175 }; 176 176 177 + xdg.configFile.fish = { 178 + source = ./fish; 179 + recursive = true; 180 + }; 181 + 177 182 xdg.configFile.aerc = { 178 183 source = ./aerc; 179 184 recursive = true; ··· 184 189 recursive = true; 185 190 }; 186 191 192 + xdg.configFile.i3status = { 193 + source = ./i3status; 194 + recursive = true; 195 + }; 196 + 187 197 home.stateVersion = "23.11"; 188 - }; 198 + }
+18 -14
sway/config
··· 90 90 bindsym $mod+d exec $menu 91 91 92 92 # Screenshots 93 - bindsym $mod+p exec grim -g "$(slurp -d)" - | wl-copy 93 + bindsym $mod+p exec slurp | grim -g - - | wl-copy 94 94 95 95 # Drag floating windows by holding down $mod and left mouse button. 96 96 # Resize them with right mouse button + $mod. ··· 106 106 bindsym $mod+Alt+l exec $lock 107 107 108 108 # Shut down 109 - bindsym $mod+Alt+p exec swaynag --message "Shut down laptop?" \ 109 + bindsym $mod+Alt+p exec swaynag --message "Shut down system?" \ 110 110 --button-dismiss-no-terminal "Shutdown" "systemctl poweroff" -e bottom \ 111 111 --font 'Berkeley Mono' 112 112 ··· 165 165 bindsym $mod+Shift+0 move container to workspace 10 166 166 # Note: workspaces can have any name you want, not just numbers. 167 167 # We just use 1-10 as the default. 168 + 169 + bindsym $mod+Tab workspace next 170 + bindsym $mod+Shift+Tab workspace prev 171 + 168 172 # 169 173 # Layout stuff: 170 174 # ··· 234 238 bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle 235 239 bindsym XF86MonBrightnessDown exec brightnessctl set 5%- 236 240 bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ 237 - bindsym XF86AudioPlay playerctl play-pause 238 - bindsym XF86AudioPause playerctl play-pause 239 - bindsym XF86AudioNext playerctl next 240 - bindsym XF86AudioPrev playerctl prev 241 + bindsym XF86AudioPlay exec playerctl play-pause 242 + bindsym XF86AudioPause exec playerctl play-pause 243 + bindsym XF86AudioNext exec playerctl next 244 + bindsym XF86AudioPrev exec playerctl prev 241 245 242 246 # 243 247 # padding mode 244 248 # 245 - #mode "padding" { 246 - # bindsym plus gap set outer current plus 10 247 - # bindsym minus gap set outer current minus 10 248 - # # return to default mode 249 - # bindsym Return mode "default" 250 - # bindsym Escape mode "default" 251 - #} 249 + # mode "padding" { 250 + # bindsym plus gap set outer current plus 10 251 + # bindsym minus gap set outer current minus 10 252 + # # return to default mode 253 + # bindsym Return mode "default" 254 + # bindsym Escape mode "default" 255 + # } 252 256 # 253 - #bindsym $mod+m mode "padding" 257 + # bindsym $mod+m mode "padding" 254 258 255 259 include powell 256 260
+3
sway/othinus
··· 4 4 5 5 # HDMI is the main output 6 6 output HDMI-A-1 pos 0 0 7 + output HDMI-A-1 adaptive_sync off 7 8 output DP-5 pos -430 1440 9 + output DP-5 adaptive_sync on 8 10 # Sometimes the DP identifier changes for some reason 9 11 output DP-6 pos -430 1440 12 + output DP-6 adaptive_sync on