begin conditional scripts
This commit is contained in:
@@ -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 []);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user