summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/desktops/niri/parts/selectors.nix
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-01-12 20:34:06 -0500
committertriethyl <triethylammonium@pm.me>2026-01-12 20:34:06 -0500
commitb2e6595169d47a5ca5fa4b8b6542aefb24389bd4 (patch)
tree5cc8eb27fef9f61c96f6b8813e5e2e25236fa74b /home-manager/features/gui/desktops/niri/parts/selectors.nix
parentd1421fcf87590cf022f453ea582c51c07678cd55 (diff)
niri: tool to reboot to secondary os on any pc
Diffstat (limited to 'home-manager/features/gui/desktops/niri/parts/selectors.nix')
-rw-r--r--home-manager/features/gui/desktops/niri/parts/selectors.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/home-manager/features/gui/desktops/niri/parts/selectors.nix b/home-manager/features/gui/desktops/niri/parts/selectors.nix
index 0a7aceb..40dc270 100644
--- a/home-manager/features/gui/desktops/niri/parts/selectors.nix
+++ b/home-manager/features/gui/desktops/niri/parts/selectors.nix
@@ -67,9 +67,18 @@ in {
$qr_code_bin | save -f $temp_file
${lib.getExe pkgs.imv} $temp_file
}
- "Open Steam Big-Picture Mode": {
- rm -r ~/.steam
- gamescope -f --backend sdl -- steam -bigpicture
+ # "Open Steam Big-Picture Mode": {
+ # rm -r ~/.steam
+ # gamescope -f --backend sdl -- steam -bigpicture
+ # }
+ "Switch to Secondary OS": {
+ # use sudo efibootmgr command to get identifiers
+ let identifier = match (hostname) {
+ "thinkpad-laptop" => "0001"
+ "nzxt-desktop" => "0000"
+ _ => "0000"
+ }
+ pkexec ${pkgs.efibootmgr}/bin/efibootmgr --bootnext $identifier ; reboot
}
}