begin conditional scripts

This commit is contained in:
2025-08-24 22:00:19 -05:00
parent e0d552d309
commit 95cfa9e840

View File

@@ -12,15 +12,11 @@
#scripts #scripts
(pkgs.writeShellScriptBin "_systemRebuild" '' (pkgs.writeShellScriptBin "_systemRebuild" ''
${pkgs.nh}/bin/nh os switch --ask /home/nathan/Projects/Olympus ${pkgs.nh}/bin/nh os switch --ask
echo //////Enter to close//////
read
'')
(pkgs.writeShellScriptBin "_homeRebuild" ''
${pkgs.nh}/bin/nh home switch --ask /home/nathan/Projects/Olympus
echo //////Enter to close////// echo //////Enter to close//////
read read
'') '')
(pkgs.writeShellScriptBin "randWallpaper" '' (pkgs.writeShellScriptBin "randWallpaper" ''
file=$(ls /home/nathan/Pictures/Wallpaper/ | shuf -n 1) file=$(ls /home/nathan/Pictures/Wallpaper/ | shuf -n 1)
@@ -72,9 +68,8 @@
'') '')
(pkgs.writeShellScriptBin "onSystemStart" '' (pkgs.writeShellScriptBin "onSystemStart" ''
${pkgs.swww}/bin/swww-daemon & ${pkgs.hyprpanel}/bin/hyprpanel &
randWallpaper & randWallpaper &
ags &
pypr & pypr &
lxqt-policykit-agent & lxqt-policykit-agent &
# nmcli device wifi connect EagleNet password '~?C#@ZiH' & # nmcli device wifi connect EagleNet password '~?C#@ZiH' &
@@ -89,7 +84,13 @@
sleep 0.4 && changeColors & 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 []);
}; };
} }