Nextcloud sync script and disabled syncthing

This commit is contained in:
2024-04-14 23:30:25 +01:00
parent 3cbcb71a2a
commit ca64edf986

View File

@@ -32,7 +32,7 @@
# Note: Game packages like Steam and Prism should be installed through flatpak, or at system level. # Note: Game packages like Steam and Prism should be installed through flatpak, or at system level.
# CLI Apps # CLI Apps
syncthing nextcloud-client
neofetch neofetch
unzip unzip
eza eza
@@ -67,6 +67,16 @@
fi fi
'') '')
(writeShellScriptBin "ncs" ''
echo "+ Syncing Nextcloud @ ~/Nextcloud"
mkdir ~/Nextcloud &> /dev/null
if [[ -z "$1" ]]; then
echo "USAGE: ncs <server_url>"
exit 1
fi
nextcloudcmd -u $USER --path "/SYNC" ~/Nextcloud "$1"
'')
(writeShellScriptBin "reload" '' (writeShellScriptBin "reload" ''
set -x set -x
nix-channel --update nix-channel --update
@@ -156,8 +166,9 @@
# ----------------------- PROGRAM CONFIGURATION ------------------------- # ----------------------- PROGRAM CONFIGURATION -------------------------
# ======================================================================= # =======================================================================
# Autostart Syncthing on boot # Autostart services on boot
services.syncthing.enable = true; # services.syncthing.enable = true;
programs.home-manager.enable = true; programs.home-manager.enable = true;
# Default browser # Default browser