From 5f41363bf23972132abf56968c05c35cbafbbfc8 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Tue, 22 Jul 2025 14:23:04 -0400 Subject: [PATCH] generation 485 25.11.20250714.62e0f05 --- README.md | 15 +++++++++++++++ home/programs/zsh/zshrc | 3 +++ home/scripts/rebuild.sh | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6bc728..a10f052 100644 --- a/README.md +++ b/README.md @@ -23,3 +23,18 @@ sudo nixos-rebuild switch --flake.#thonkpad - [damhiya](https://github.com/damhiya) - [masterofnull](https://github.com/MasterofNull/nixos) - [hlissner](https://github.com/hlissner/dotfiles) (also uses bspwm) + +# For if you're not me +My setup is designed for (1) [academic research](https://jakegines.in/research) in my PhD, and (2) security research, in my work as a cryptographic auditor. I would highly recommend *not* (not) installing this bare and trying to figure out my system. Read my system manually and pick out the parts you're interested in. + +Some subtleties about my setup: +- tailscale and syncthing are automatically set up. my note system is integrated with the OS itself with [nf](https://github.com/JakeGinesin/nix-dots/blob/master/home/scripts/journal/nf.sh), alacritty, and rofi. syncing of notes between my server, my phone, and my computer(s) is fully automatic, bootstrapping from the agenix'ed API keys +- my firefox setup is decked out with all my preferred addons, css, and settings [declared](https://github.com/JakeGinesin/nix-dots/blob/master/home/programs/firefox/default.nix). i also have a nice startpage [declared](https://github.com/JakeGinesin/nix-dots/tree/master/home/programs/firefox/startpage) +- i use dnsmasq as opposed to systemd-resolved to manage local dns. I configured nmcli to automatically set dnsmasq to resolve dns queries to [certain websites](https://github.com/JakeGinesin/nix-dots/blob/master/system/networking/blockers.sh) (i.e. instagram.com) to 0.0.0.0 if i'm connected to certain wifi ESSID's (i.e. my university's wifi, "NUWave") +- both neovim+emacs used +- custom font ttfs for polybar are [directly included](https://github.com/JakeGinesin/nix-dots/blob/master/home/fonts/default.nix) in my config because certain icons are no longer supported +- i have a stacked [rebuild script](https://github.com/JakeGinesin/nix-dots/blob/master/home/scripts/rebuild.sh) +- my zsh is [stacked](https://github.com/JakeGinesin/nix-dots/blob/master/home/programs/zsh/default.nix) with many nice [aliases](https://github.com/JakeGinesin/nix-dots/blob/master/home/programs/zsh/zshrc) for automation. secret aliases with hard-coded IPs whatever are stored under an agenix secret +- bspwm on x is used, with sxhkd used for most hotkeys +- papers automatically saved with zotero are [automatically searchable](https://github.com/JakeGinesin/nix-dots/tree/master/home/scripts/document-scripts) +- there is an option for resolution in the [configuration.nix file](https://github.com/JakeGinesin/nix-dots/tree/master/hosts/rq) diff --git a/home/programs/zsh/zshrc b/home/programs/zsh/zshrc index 2fb38b8..0410fa3 100644 --- a/home/programs/zsh/zshrc +++ b/home/programs/zsh/zshrc @@ -203,6 +203,9 @@ alias doom-cfg="cd /home/synchronous/nix-cfg/home/programs/emacs/cfg" alias nrc="cd /home/synchronous/nix-cfg/home/programs/nvim" +# make ncdu run fast wow +alias ncdu="ncdu -rx" + alias ndwc="nmcli device wifi connect" alias ndwl="nmcli device wifi list" alias ndc="nmcli device disconnect wlan0" diff --git a/home/scripts/rebuild.sh b/home/scripts/rebuild.sh index 5fbaf57..ca76ddc 100644 --- a/home/scripts/rebuild.sh +++ b/home/scripts/rebuild.sh @@ -54,7 +54,9 @@ if grep --color error /tmp/nixos-switch.log; then fi # Get current generation metadata -current=$(nixos-rebuild list-generations | grep current) +# current=$(nixos-rebuild list-generations | grep current) +# current=$(sudo nix-env --list-generations --profile /nix/var/nix/profiles/system | tail -n 1 | awk '{print $1, $2, $3}') +current=$(nixos-rebuild list-generations --json | jq -r '.[1] | [.generation, .buildDate, .nixosVersion, .kernelVersion, (.current|tostring)] | @tsv' | awk '{print "generation", $1, $2}') # Commit all changes witih the generation metadata git --git-dir /home/synchronous/nix-cfg/.git add .