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.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
pushd $SCRIPT_DIR/.. &> /dev/null;
sudo nix flake update;
sudo nix-channel --update;
nix-channel --update;
sudo nix flake update "$@";
popd &> /dev/null;

View File

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