Skip to content

rrvsh/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,334 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tools

caa 10032026

these are the tools i currently use :3

notes

  • __curPos.file will give the full evaluated path of the nix file it is called in. See this issue for more information.
  • to get home-manager logs on darwin, use darwin-rebuild instead of nh
  • on alpha, run rebuilds via nix develop -c just rb from the repo root. if rosetta-builder flakes out with platform mismatch / remote builder issues, run just rb a second time — it often succeeds on retry.

nemesis midnight shutdown

  • hypridle writes idle/active state to /run/user/<uid>/hypridle-state on nemesis.
  • idle timeout is 60 seconds.
  • daily-midnight-poweroff runs at 00:00 local time daily.
  • at 00:00, if state is not idle, service exits immediately.
  • if state is idle, service sends a desktop notification that shutdown will happen in 1 minute.
  • service waits 60 seconds, checks state again, and powers off immediately if still idle.
  • service logs each step to journald (view with journalctl -u daily-midnight-poweroff.service).

to kill Hyprland from an SSH session

pkill .Hyprland-wrapp

verify Hyprland lua config (without switching)

# verify the active config file
Hyprland --verify-config -c ~/.config/hypr/hyprland.lua

# check runtime-reported config errors
hyprctl configerrors

systemd-boot EFI default entry override

If bootctl status shows a stale Default Entry while /boot/loader/loader.conf has a newer default, the EFI variable LoaderEntryDefault is overriding loader.conf.

Inspect current default:

sudo bootctl status | rg "Current Entry|Default Entry"
sudo grep '^default ' /boot/loader/loader.conf

Set EFI default explicitly:

sudo bootctl set-default nixos-generation-<N>.conf

Unset EFI override (use loader.conf as source of truth):

# remove LoaderEntryDefault EFI variable
sudo bash -lc 'for v in /sys/firmware/efi/efivars/LoaderEntryDefault-*; do [ -e "$v" ] || continue; chattr -i "$v" 2>/dev/null || true; rm -f "$v" || true; done'

Note: on this machine, unsetting from boot.loader.systemd-boot.extraInstallCommands did not persist (the variable reappeared by end of switch). The reliable approach here is to unset it after nh os switch completes (wired into Justfile rb).

acknowledgements

About

a collection of tools i use for my workflow

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors