add nextcloud cmds

This commit is contained in:
Ingolf Wagner 2021-09-08 03:37:59 +02:00
parent cac1b7ed47
commit b273895224
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,13 +1,29 @@
{ config, lib, pkgs, ... }:
let unstable = import <nixpkgs-unstable> { };
let
unstable = import <nixpkgs-unstable> { };
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 <mozilla-overlay/rust-overlay.nix>) ];
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";
}