Minor fixes

This commit is contained in:
Emmet
2024-12-28 11:30:30 -06:00
parent a8f84076e1
commit b6f4118a6b
3 changed files with 4 additions and 15 deletions

View File

@@ -24,11 +24,5 @@
]; ];
xdg.enable = true; xdg.enable = true;
xdg.userDirs = {
extraConfig = {
XDG_GAME_DIR = "${config.home.homeDirectory}/Media/Games";
XDG_GAME_SAVE_DIR = "${config.home.homeDirectory}/Media/Game Saves";
};
};
} }

View File

@@ -7,7 +7,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Update flake # Update flake
pushd $SCRIPT_DIR/.. &> /dev/null; pushd $SCRIPT_DIR/.. &> /dev/null;
sudo nix flake update; sudo nix flake update "$@";
sudo nix-channel --update;
nix-channel --update;
popd &> /dev/null; popd &> /dev/null;

View File

@@ -21,20 +21,17 @@ let myScript = ''
''+userSettings.dotfilesDir+''/scripts/sync-posthook.sh; ''+userSettings.dotfilesDir+''/scripts/sync-posthook.sh;
exit 0; exit 0;
elif [ "$1" = "update" ]; then elif [ "$1" = "update" ]; then
if [ "$#" -gt 1 ]; then ''+userSettings.dotfilesDir+''/scripts/update.sh "''${@:2}";
echo "Warning: The 'update' command has no subcommands (no $2 subcommand)";
fi
''+userSettings.dotfilesDir+''/scripts/update.sh;
exit 0; exit 0;
elif [ "$1" = "upgrade" ]; then elif [ "$1" = "upgrade" ]; then
if [ "$#" -gt 1 ]; then if [ "$#" -gt 1 ]; then
echo "Warning: The 'update' command has no subcommands (no $2 subcommand)"; echo "Warning: The 'upgrade' command has no subcommands (no $2 subcommand)";
fi fi
''+userSettings.dotfilesDir+''/scripts/upgrade.sh; ''+userSettings.dotfilesDir+''/scripts/upgrade.sh;
exit 0; exit 0;
elif [ "$1" = "pull" ]; then elif [ "$1" = "pull" ]; then
if [ "$#" -gt 1 ]; then if [ "$#" -gt 1 ]; then
echo "Warning: The 'upgrade' command has no subcommands (no $2 subcommand)"; echo "Warning: The 'pull' command has no subcommands (no $2 subcommand)";
fi fi
''+userSettings.dotfilesDir+''/scripts/pull.sh; ''+userSettings.dotfilesDir+''/scripts/pull.sh;
exit 0; exit 0;