From 2ccfc15ab9161652b7e30daaa7680156c8b40d63 Mon Sep 17 00:00:00 2001 From: ska Date: Mon, 22 Dec 2025 16:25:39 +0000 Subject: [PATCH] Update configuration.nix --- configuration.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/configuration.nix b/configuration.nix index 698dc10..71260a8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -213,18 +213,6 @@ zramSwap.enable = true; - ############################################################ - # USB ROOT DEVICE MONITOR (SHUTDOWN ON DISCONNECT) - ############################################################ - - # Monitor root device removal and shut down - services.udev.extraRules = '' - # Match the root filesystem device by label (or use PARTLABEL/UUID if preferred) - KERNEL=="sd*", ENV{ID_FS_LABEL}=="nixos-root", SYMLINK+="nixos-root-device" - # Trigger when the root device is removed - ACTION=="remove", KERNEL=="sd*", ENV{ID_FS_LABEL}=="nixos-root", RUN+="/run/current-system/sw/bin/systemctl poweroff" - ''; - ############################################################ # NIXOS VERSION ############################################################