Nextcloud sync script and disabled syncthing
This commit is contained in:
17
home.nix
17
home.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user