From 95cfa9e840b7370cc640f49217faa21ab1106953 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 24 Aug 2025 22:00:19 -0500 Subject: [PATCH] begin conditional scripts --- .../nathan/packages/scripts/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/home-manager/nathan/packages/scripts/default.nix b/home-manager/nathan/packages/scripts/default.nix index 3e899db..9158399 100644 --- a/home-manager/nathan/packages/scripts/default.nix +++ b/home-manager/nathan/packages/scripts/default.nix @@ -12,15 +12,11 @@ #scripts (pkgs.writeShellScriptBin "_systemRebuild" '' - ${pkgs.nh}/bin/nh os switch --ask /home/nathan/Projects/Olympus - echo //////Enter to close////// - read - '') - (pkgs.writeShellScriptBin "_homeRebuild" '' - ${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/Olympus + ${pkgs.nh}/bin/nh os switch --ask echo //////Enter to close////// read '') + (pkgs.writeShellScriptBin "randWallpaper" '' file=$(ls /home/nathan/Pictures/Wallpaper/ | shuf -n 1) @@ -72,9 +68,8 @@ '') (pkgs.writeShellScriptBin "onSystemStart" '' - ${pkgs.swww}/bin/swww-daemon & + ${pkgs.hyprpanel}/bin/hyprpanel & randWallpaper & - ags & pypr & lxqt-policykit-agent & # nmcli device wifi connect EagleNet password '~?C#@ZiH' & @@ -89,7 +84,13 @@ sleep 0.4 && changeColors & '') - ]; + ] ++ (if config.homeconfig.standalone then [ + (pkgs.writeShellScriptBin "_homeRebuild" '' + ${pkgs.nh}/bin/nh home switch --ask + echo //////Enter to close////// + read + '') + ] else []); }; }