From b2738952248e57cba1e4b43e085292355d88cd06 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 8 Sep 2021 03:37:59 +0200 Subject: [PATCH] add nextcloud cmds --- configs/sterni/packages.nix | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/configs/sterni/packages.nix b/configs/sterni/packages.nix index 005c552..71893fd 100644 --- a/configs/sterni/packages.nix +++ b/configs/sterni/packages.nix @@ -1,13 +1,29 @@ { config, lib, pkgs, ... }: -let unstable = import { }; +let + unstable = import { }; + nextcloudSync = folder: + pkgs.writers.writeBashBin "nextcloud-sync-${folder}" '' + ${pkgs.nextcloud-client}/bin/nextcloudcmd \ + --user palo \ + --password `pass show home/nextcloud/palo/nextcloudcmd-token` \ + ~/Nextcloud/${folder} \ + https://nextcloud.ingolf-wagner.de/remote.php/webdav/${folder} + ''; + in { # overlay included nixpkgs.overlays = [ (import ) ]; environment.systemPackages = with pkgs; [ - zeal # offline documentation - keepassxc + + (nextcloudSync "InstantUpload") + (nextcloudSync "Pictures") + (nextcloudSync "Unterlagen") + (nextcloudSync "Video") + + #zeal # offline documentation + #keepassxc sweethome3d.application polygon-art @@ -25,7 +41,6 @@ in { #unstable.sonic-visualiser sononym-crawler darktable - #haskellPackages.mahlzeit # rust development environment rustup @@ -40,8 +55,7 @@ in { jetbrains.pycharm-professional jetbrains.datagrip - # foto - #fuji-cam-wifi-tool + element-desktop tor-browser-bundle-bin #(tor-browser-bundle-bin.overrideAttrs (old: rec { @@ -56,6 +70,4 @@ in { ]; - environment.variables.RECIPE_HOME = "$HOME/mahlzeit"; - }