# Stuff I use and that you should too (or, my configuration.nix)

# I know what you're thinking. "Jacob, haven't enough people posted their # dotfiles on the web already?" # Yeah, but: # # 1. I've put a lot more effort into selecting some of the tools I use than is # probably healthy. For the longest time I've wanted to write a post on # lesser-known software that I use and that you should, too. If you skim along # and read the comments, this is that post. # # 2. I think I make different tradeoffs between functionality, appearance, # F(L)OSS purity, overbuiltness, duct-tapeness, and boringness-the-virtue than # the typical dotfiles poster. # # 3. I need something to force me to clean up my one-off tweaks. # # In case you're wondering about the hardware I use, here's a picture. Try # moving your mouse over different areas (or use the tab key).
Backpack

A canvas backpack used to carry (without loss of generality) a laptop to a coffee shop on a bike. There are no logos or identifying marks. It's green.

Other contents: fountain pen, gel pen, mechanical pencil, spiral-bound notebook, a bunch of blank index cards, charger
Framework 16 (huey)

My daily driver. Currently docked.

configuration.nix: you're reading it
Whatever kind of surplus laptop I could get for free (dewey)

Only purpose in life is to remote into huey while I'm overseas.

Emotional distress if lost: minimal
2015 MacBook Pro (louie)

Previous daily driver; now here for when I need to test something on OSX or I want a word processor with real Times New Roman.

Still receiving security updates: no
24" 4k monitor

Behold, the one retina-density monitor that doesn't break the bank. Using a Mac for eight years spoiled me for anything less than:

devicePixelRatio: 2
Webcam

Looks generic.

Brand: obscured by electrical tape
Webcam lighting setup

Two light bulbs with screw -> plug adapters, plugged into an extension cord, running to a switched outlet (not pictured). Light bounces from the wall to my face and into the webcam sensor, improving image quality immensely.

Usual location: behind the monitor so it doesn't shine directly in my eyes
Pebble Time 2

I guess it's kind of nice to be able to see my texts without getting my phone out of my pocket? IDK, I've never understood watches.

Comfort: fine for a few hours but having things on me 24/7 gets to feeling irritating before long
Pebble Index 01

You know how on TV everyone carries a voice recorder as a way of taking notes to themselves? I've always wanted one of those, so when Pebble made one in a ring format I had to have it.

Notes taken per day: 0-5, varying wildly
Glass coffee mug

I wanted a coffee mug that was my favorite color. (My favorite color is transparent.)

Exact hexcode: #00000000
Minimal phone MP01 (jwg)

E-ink screen, physical keyboard, starts more conversations with strangers than any other bit of tech I own. Holds an offline copy of Wiktionary in Aard 2.

Camera quality: potato
Apple magic keyboard, 2nd generation

I like laptop-style keyboards. Yes, I've tried mechanical.

Layout: Dvorak
Pwnage ultra custom wireless symm 2

I went shopping for the plainest-looking decent mouse I could find and I landed on this one.

Troubleshooting steps for when the middle button stops working: thwack repeatedly
Noise cancelling headphones

IDK, these work? I am not an audiophile, just a huge fan of noise cancellation.

Firmware: annoyingly chatty on startup
{ config, lib, pkgs, ... }:
let unstable = import <nixos-unstable> { config.allowUnfree = true; }; in
{
	# TODO share these files too
	imports = [
		./kagi-dev-env.nix # containerization, service wrangling
		./kiwix.nix # local copy of wikipedia, downloaded via torrent during the nix build (practical? no. cool? yes.)
		# ./remote-access.nix # keep turned off when not traveling
		./hardware-configuration.nix
	];

	console.keyMap = "dvorak"; # first and most important settings change

	programs.sway = {
		enable = true;
		wrapperFeatures.gtk = true;
	};
	programs.waybar.enable = true;
	systemd.user.services.waybar.path = with pkgs; [ systemd bash ];

## Browser and a ton of extensions ##

programs.firefox.enable = true; # plus: # Sanity preservers ("cognitohazard exposure prevention" if you're in a dramatic mood): # - uBlock Origin with most of the recommended optional filter lists and some of my own # - DeArrow and Sponsorblock # - Patreon memberships etc. because the people making content deserve to make money somehow # # Missing bits of browser chrome: # - Outline Panel (mine), which could've been called "table of contents sidebar" just as easily # - Awesome RSS for <link rel="alternate" type="application/{atom,rss}+xml" /> # - {Next,Previous} Page Button and HEAD examiner for rel="{next,prev}" # - Go Up Button because it's better than hoping that everyone suddenly adds rel="up" # # Network utilities: # - Redirector, swiss army knife whose concrete purpose varies over time # - FoxyProxy for routing some domains over Tor # - Decentraleyes and Yang! to prevent some requests from hitting the network # - Kagi Search for Firefox and Kagi Privacy Pass for auth # # Ill-advised cosmetic customization: # - Tampermonkey to run the Kagi Doggo Xeyes script that I wrote that one time # - Stylus for # - Gruvbox themes on Wikipedia and GitHub # - Compact Zulip UI # - Native system emoji font in Zulip (TODO: turn that into a PR someday) # - Firefox Color and userChrome.css to make browser UI gruvbox (TODO: write userChrome post) # # Also: # - Snooze Tabs, one of the eighty places I keep todos

## Packages ##

programs.thunderbird.enable = true; # email, calendar, RSS reader, wish it was a better Matrix client but for now I'll keep Element permanently open in Firefox programs.fish.enable = true; # interactive shell that's nice to use without requiring a bajillion config files; wish it was more POSIX compliant, but oh my zsh was *so slow* the last time I tried it programs.thunar.enable = true; programs.thunar.plugins = with pkgs; [ thunar-archive-plugin xarchiver # broken :( thunar-volman thunar-vcs-plugin thunar-media-tags-plugin ]; services.tumbler.enable = true; # image thumbnail support environment.systemPackages = with pkgs; [ rofi rofimoji wayfreeze wl-color-picker wf-recorder slurp pwvucontrol wl-mirror sway-contrib.grimshot unstable.zed-editor # current code editor of choice; stable nixpkgs lags behind significantly unstable.sublime4 # for prose and stuff; stable nixpkg was broken last I checked sublime-merge # can handle my rebase-heavy workflow aseprite # favorite graphics tool ever gimp-with-plugins inkscape-with-extensions # ... although these are nice too; also try yqnn.github.io/svg-path-editor libreoffice # I've tried hledger, I prefer my checkbook.ods, sorry not sorry tor-browser ungoogled-chromium epiphany # a good web dev tests in all the engines signal-desktop vlc digikam # photo gallery that doesn't want to be a web app that owns file storage; just a regular desktop app evolution # for reading maildir-format archives, TODO move that to thunderbird somehow wget killall cloc file jq ripgrep entr wl-clipboard bubblewrap chafa # indispensable command line utilities sl cowsay fortune figlet # dispensable command line utilities jw-gibberish # my own dispensable command line utility; package definition below htop iftop nvtopPackages.amd iotop lsof # every flavor of system monitor ffmpeg imagemagick pandoc # swiss army knives git php crystal drawio nixd # dev tools exiftool # metadata inspector/scrubber optipng zopfli advancecomp flac opus-tools # because I'm OCD about compression borgbackup restic # borg for me; restic for windows-using family to whom I provide IT dosbox-x desmume mgba # old tech will live on forever in my heart. also in VMs. xarchiver adwaita-icon-theme # mouse cursor and icons gnome-themes-extra # dark adwaita theme android-tools evolvotron any-nix-shell ];

## Package customization ##

# is so absurdly easy on NixOS, it's amazing nixpkgs.overlays = [ (final: prev: { factorio = prev.factorio.override { username = "my_factorio_username"; token = "get_your_own"; }; # someone please merge my nixpkgs PR so I can stop doing this :'( evolvotron = (pkgs.callPackage /home/jacob/nixpkgs/pkgs/by-name/ev/evolvotron/package.nix {}).overrideAttrs (oldAttrs: { src = /home/jacob/evolvotron; }); # enable opening files *and folders* from recursivebrowser because I miss spotlight on OSX rofi-unwrapped = prev.rofi-unwrapped.overrideAttrs (oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ [ (prev.fetchpatch { url = "https://github.com/jacobwinters/rofi/commit/a518b6fdd58a43cf9e639853797d69e148ad8420.patch"; sha256 = "sha256-s4zutXWB/zKmQkF5w5hPgKy4+Zh+kqXLR8tLeWUTa4k="; }) ]; }); # in sway config: # bindsym { # ctrl+space exec rofi -show combi -combi-modes drun#recursivebrowser#run -combi-display-format '{text}' # mod4+ctrl+space exec rofimoji -f emojis latin-1_supplement spacing_modifier_letters greek_and_coptic general_punctuation superscripts_and_subscripts currency_symbols combining_diacritical_marks_for_symbols letterlike_symbols number_forms arrows mathematical_operators miscellaneous_technical control_pictures box_drawing block_elements geometric_shapes miscellaneous_symbols dingbats miscellaneous_mathematical_symbols-a supplemental_arrows-a supplemental_arrows-b miscellaneous_mathematical_symbols-b supplemental_mathematical_operators miscellaneous_symbols_and_arrows supplemental_punctuation musical_symbols mathematical_alphanumeric_symbols ornamental_dingbats transport_and_map_symbols geometric_shapes_extended supplemental_arrows-c supplemental_symbols_and_pictographs symbols_for_legacy_computing combining_diacritical_marks # ctrl+shift+space exec rofi -show calc -calc-command "echo -n '{result}' | wl-copy" -no-history # } rofi = prev.rofi.override (oldAttrs: { plugins = [ pkgs.rofi-calc ]; }); jw-gibberish = (pkgs.stdenv.mkDerivation { pname = "gibberish"; version = "unstable"; src = pkgs.fetchFromGitHub { owner = "jacobwinters"; repo = "gibberish"; rev = "4bc9b00edd6b7fe9157125b0cab7f04ebb308030"; hash = "sha256-1dtUhpQQV6lDt0KIwGQ5LcaEc1D5FN5vmBgAngFNwnQ="; }; nativeBuildInputs = [ pkgs.go ]; buildPhase = "HOME=$TMPDIR GOCACHE=$TMPDIR/go-cache GOFLAGS=-mod=mod go build -o $out/bin/gibberish gibberish.go"; }); }) ]; programs.ccache.enable = true; programs.ccache.packageNames = [ "rofi-unwrapped" "evolvotron" ]; nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];

## Fonts ##

fonts.packages = with pkgs; [ noto-fonts noto-fonts-emoji-blob-bin # plus a custom noto variant for zed ]; fonts.fontconfig.defaultFonts = { serif = [ "Noto Serif" ]; sansSerif = [ "Noto Sans" ]; monospace = [ "Noto Sans Mono" ]; emoji = [ "Blobmoji" "Noto Color Emoji" ]; # long live blobs! };

## Sandboxed apps ##

# I trust game binaries as far as I can throw them # in a perfect world I'd write sandbox rules myself or derive them from flatpaks or something # but these are prebuilt and easy to use # TODO would be nice if the .desktops passed through programs.firejail = { enable = true; wrappedBinaries = { supertuxkart = { # STK is really good for an open source game, seriously, go try it executable = "${pkgs.supertuxkart}/bin/supertuxkart"; profile = "${pkgs.firejail}/etc/firejail/supertuxkart.profile"; }; deluge = { executable = "${pkgs.deluge}/bin/deluge"; profile = "${pkgs.firejail}/etc/firejail/deluge.profile"; }; prismlauncher = { executable = "${pkgs.prismlauncher}/bin/prismlauncher"; profile = "${pkgs.firejail}/etc/firejail/prismlauncher.profile"; }; steam = { executable = "${pkgs.steam}/bin/steam"; profile = "${pkgs.firejail}/etc/firejail/steam.profile"; }; factorio = { executable = "${pkgs.factorio-space-age}/bin/factorio"; profile = "${pkgs.firejail}/etc/firejail/steam.profile"; }; }; };

## Crontab ##

systemd.user.services.borg-backup = { path = with pkgs; [ bash borgbackup torsocks ]; script = "bash /home/jacob/bin/borg-create-remote.sh"; # goes to BorgBase serviceConfig = { Type = "oneshot"; }; unitConfig = { ConditionUser = "jacob"; }; }; systemd.user.timers.borg-backup = { wantedBy = [ "timers.target" ]; timerConfig = { OnCalendar = "daily"; Persistent = true; }; }; systemd.user.services.wlsunset = { wantedBy = [ "graphical-session.target" ]; path = with pkgs; [ wlsunset ]; script = "wlsunset -S 06:00 -s 20:00"; };

## Networking ##

services.tor.enable = true; services.tor.torsocks.enable = true; services.tor.client.enable = true; # systemd.services.nix-daemon.environment.https_proxy = "socks5h://127.0.0.1:9050"; # download packages over Tor # disabled because I'm using torrents for kiwix services.zerotierone.enable = true; systemd.services.zerotierone.serviceConfig.ProtectHome = true; services.syncthing.enable = true; services.syncthing.openDefaultPorts = true; services.syncthing.systemService = false; # automate clicking through the free downtown wi-fi's auth page networking.networkmanager.dispatcherScripts = [{ type = "basic"; source = lib.getExe (pkgs.writeShellApplication { name = "boise-wifi-dispatch"; runtimeInputs = with pkgs; [ curl jq coreutils ]; text = ''[ "$2" = up ] && [ "$CONNECTION_ID" = "City of Boise Free" ] && /home/jacob/bin/boise-wifi-clickthrough.sh''; }); }];

## Kind of feels like these should be set by default ##

networking.networkmanager.wifi.macAddress = "random"; zramSwap.enable = true; nix.settings.auto-optimise-store = true; system.autoUpgrade.enable = true; system.autoUpgrade.runGarbageCollection = true; system.autoUpgrade.randomizedDelaySec = "600s"; system.autoUpgrade.dates = "17:00"; nix.gc.options = "--delete-older-than 7d"; system.copySystemConfiguration = true;

## Here be boring things ##

users.users.jacob = { isNormalUser = true; extraGroups = [ "wheel" "video" ]; shell = pkgs.fish; }; services.avahi = { enable = true; nssmdns4 = true; openFirewall = true; }; services.printing = { enable = true; drivers = with pkgs; [ gutenprint hplip # these next two lines feel like they should be unnecessary cups-filters cups-browsed ]; }; networking.hostName = "huey"; boot.kernelPackages = pkgs.linuxPackages_latest; boot.loader.efi.canTouchEfiVariables = true; boot.loader.systemd-boot.enable = true; hardware.bluetooth.enable = true; hardware.graphics.enable32Bit = true; # for steam hardware.graphics.extraPackages = with pkgs; [ mesa.opencl ]; # for digikam networking.networkmanager.enable = true; nix.settings.experimental-features = [ "nix-command" ]; nixpkgs.config.allowUnfree = true; services.blueman.enable = true; services.ddccontrol.enable = true; services.gnome.gnome-keyring.enable = true; services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore"; services.udisks2.enable = true; system.stateVersion = "25.11"; time.timeZone = "America/Boise"; } # built using prep-nix.sed # Last updated 2026-11-23 # Home