Personal dotfiles and Nix system configurations, managed as a bare-style repo checked out directly into ~.
- Nix flake — NixOS system configs for multiple hosts (
dex,x,ptv,metabox), Home Manager profiles, nix-on-droid, and custom packages. Uses the dendritic pattern with flake-parts for auto-discovered modules. - Shell — Zsh config, tmux, starship prompt, aliases and scripts in
bin/. - Editors — Neovim, VS Code, Zed.
- Desktop — Niri, Hyprland, waybar, rofi, swaync, yazi, Ghostty, kitty.
- Media — mpv with subs2srs, Plex, Jellyfin, Kodi.
- macOS — Aerospace, custom Engrammer keyboard layout, Homebrew Brewfile.
Follow the NixOS install or install Nix into your current distribution
Run dotinstall to clone into your home directory:
curl -sL https://raw.githubusercontent.com/dlip/dotfiles/refs/heads/main/bin/dotinstall | bashThis clones the repo's .git into ~, backs up any conflicting files to ~/.dotbackup, then checks out.
nix/home/ contains the standalone docker, coder, and cloudide profiles; docker-arm reuses docker.nix. App configuration files are tracked directly in this repository rather than installed through Home Manager.
If using standalone nix, add a config to nix/modules/homemanager.nix then and to ~/.zshrc.local, replacing CONFIG with the name
export NIXCONFIG=CONFIGOpen a new shell and run this to switch:
nixconfigHookshot is packaged natively as .#hookshot. Its builder is retained at ~/.local/share/hookshot/tools and its game is installed at ~/Games/Hookshot; the Hookshot applications entry starts that folder. Saves remain in ~/.local/share/hookshot/save, separate from Longshot.
To update its pinned source and rebuild an existing game, run from this repository:
nix flake update hookshot
nix build --impure .#hookshot --out-link "$HOME/.local/share/hookshot/tools"
"$HOME/.local/share/hookshot/tools/bin/hookshot" --cli --update "$HOME/Games/Hookshot" --jobs 4The Linux package includes the native host sources, carries the wheel-text and C++ compatibility patch in nix/pkgs/hookshot/linux-game-build.patch, and embeds FFmpeg and C++ runtime library search paths in built games. Game caches and logs are in ~/Games/Hookshot/cache and ~/Games/Hookshot/logs.
Both game builders select matching Clang, LLD and LLVM from llvmPackages_23 to support their shipped play profiles and lightweight compilation passes. This is package-scoped; the system's default compiler is unchanged. Changing the toolchain invalidates compiled-object caches and requires rebuilding the games.
Longshot is packaged natively as .#longshot and included in x's system packages, alongside Hookshot. The package builds the Rust builder and the game's Rust library with Nix. Game builds use Nix's compiler instead of an AppImage or downloaded toolchain.
The local installation keeps its builder at ~/.local/share/longshot/tools (a Nix GC root) and its built game at ~/Games/Longshot. Start it from the Longshot applications entry or run longshot after system activation. For Steam, keep the existing shortcut and env -u LD_PRELOAD %command% launch option. Use longshot-builder for build commands.
The initial build uses Hookshot's extracted romfs and .hookshot_exefs, with RomFS hard-linked rather than duplicated. Settings and caches are separate. Saves are in ~/.local/share/longshot/save; Hookshot's saves are not imported or modified. See the upstream save-transfer guide to carry over an adventure after closing both games.
To migrate a game built by the old Python builder, first close the game. Build into a separate folder using your .nup or an unpacked dump with romfs/ and exefs/:
nix build --impure .#longshot --out-link "$HOME/.local/share/longshot/tools"
"$HOME/.local/share/longshot/tools/bin/longshot-builder" build \
--game /path/to/your/dump --out "$HOME/Games/Longshot-Rust" --jobs 4 --no-prepare-shadersThe Rust builder cannot update a Python build that lacks longshot_build.json. Once the new build is verified, keep the old folder as a backup and put the new one at ~/Games/Longshot to reuse the existing Steam shortcut. Future game updates use longshot-builder update "$HOME/Games/Longshot" --jobs 4. Runtime caches and logs are in the game folder.
The Gamescope Alt+Tab helper preserves app identities already discovered by Gamescope. Only otherwise-unfocusable normal app windows receive a generic non-Steam app tag; replacing a Steam-launched game's identity can prevent Steam Input from restoring its controller layout.
Steam uses its UI controller layout while its window is focused. Returning to a Steam-launched game restores that game's layout.
Super+B opens Blueman in the Gamescope session (either Super key works). It uses a separate D-Bus session so it does not activate a manager on another desktop; pressing it again focuses the existing window. Closing Blueman restores the previous app. The x host enables Blueman's package and Bluetooth service integration.
Super+Shift+S suspends the system with systemctl suspend while the Steam Gamescope session is active. Either Super key and either Shift key work.
Steam's Switch to Desktop power-menu action opens regular Steam inside the same Gamescope session. The session uses its own Steam FHS environment with -steamos3 and a steamos-session-select plasma hook, instead of Steam's display-manager user-switch fallback. The hook returns promptly and dispatches the UI change in a detached worker, then focuses Steam's new window without changing its app identity. It does not stop Steam, terminate Gamescope, or change the login session. Use Steam's View → Big Picture Mode to return.
Apply changes with sudo nixos-rebuild switch --flake /home/dane#x. Shortcut changes take effect without restarting Steam. The desktop-menu integration needs one Gamescope-session restart after the initial rebuild to load its custom Steam environment and launch flag; subsequent menu switches do not log out. Worker errors are recorded in $XDG_RUNTIME_DIR/steam-desktop.log.
The lsp list in nix/pkgs/groups.nix is included in the default, extra, and gui package groups. It includes TypeScript/JavaScript, Bash, YAML, HTML, CSS, and JSON language servers, plus the vscode-js-debug debugger.
vscode-js-debug provides js-debug; omp needs an adapter-path override to use it. Python debugging also requires debugpy in the Python environment used by omp's adapter.
The repo uses an ignore-everything allowlist in .gitignore:
/* # ignore everything
!/.zshrc # explicitly track individual files
!/bin # or entire directories
- Adding a file: add a
!/<path>entry to.gitignore, thengit addthe file. - Removing a file: delete the
!/<path>entry from.gitignoreandgit rmthe file.