1
0
Fork 0

Fix mode switching

This commit is contained in:
Malte Brandy 2021-07-09 01:08:48 +02:00
parent 7e31bae203
commit e1ba26a2d5
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -11,7 +11,7 @@ in
imports = [ (import ./wallpaper.nix { inherit modeFile; }) ];
home.packages = builtins.attrValues rec {
maintenance = pkgs.writeShellScriptBin "maintenance" ''
set -ex
set -e
${configGit} fetch
if [[ "$1" == "--only-on-update" && "$(${configGit} rev-parse master)" == "$(${configGit} rev-parse origin/master)" ]]; then
echo "Git repo up-to-date, not doing anything."
@ -20,7 +20,7 @@ in
${configGit} merge --ff-only origin/master master
${configGit} submodule update
${updateModes}/bin/update-modes
/var/run/current-system/bin/sudo -A /var/run/current-system/bin/update-system
/run/current-system/bin/sudo -A /run/current-system/bin/update-system
'';
activateMode = pkgs.writeHaskellScript { name = "activate-mode"; } ''
getMode :: IO Text