move to snowfall
This commit is contained in:
parent
9d7ad7c973
commit
769d4b0df5
188 changed files with 2203 additions and 3041 deletions
12
packages/sys/powermenu.nix
Normal file
12
packages/sys/powermenu.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{writeShellScriptBin, ...}:
|
||||
writeShellScriptBin "powermenu" ''
|
||||
chosen=$(printf " Power Off\n Restart\n Suspend\n Lock\n Log Out" | anyrun --plugins libstdin.so --show-results-immediately true)
|
||||
|
||||
case "$chosen" in
|
||||
" Power Off") systemctl poweroff;;
|
||||
" Restart") systemctl reboot;;
|
||||
" Lock") swaylock;;
|
||||
" Log Out") hyprctl dispatch exit;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
''
|
||||
13
packages/sys/rebuild.nix
Normal file
13
packages/sys/rebuild.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{writeShellScriptBin, ...}:
|
||||
writeShellScriptBin "rebuild" ''
|
||||
set -e
|
||||
pushd ~/nixos/
|
||||
alejandra . &>/dev/null
|
||||
git add .
|
||||
echo "[REBUILD]: rebuilding nixos"
|
||||
nh os switch --update
|
||||
gen=$(nixos-rebuild list-generations | grep current)
|
||||
git commit -am "$gen"
|
||||
git push origin main
|
||||
popd
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue