Nextcloud sync script and disabled syncthing

This commit is contained in:
2024-04-14 23:30:25 +01:00
parent e7949c874d
commit 9fb43927aa

View File

@@ -32,7 +32,7 @@
# Note: Game packages like Steam and Prism should be installed through flatpak, or at system level.
# CLI Apps
syncthing
nextcloud-client
neofetch
unzip
eza
@@ -67,6 +67,16 @@
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" ''
set -x
nix-channel --update
@@ -156,8 +166,9 @@
# ----------------------- PROGRAM CONFIGURATION -------------------------
# =======================================================================
# Autostart Syncthing on boot
services.syncthing.enable = true;
# Autostart services on boot
# services.syncthing.enable = true;
programs.home-manager.enable = true;
# Default browser