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, ... }: { 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 { in {
# overlay included # overlay included
nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ]; nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zeal # offline documentation
keepassxc (nextcloudSync "InstantUpload")
(nextcloudSync "Pictures")
(nextcloudSync "Unterlagen")
(nextcloudSync "Video")
#zeal # offline documentation
#keepassxc
sweethome3d.application sweethome3d.application
polygon-art polygon-art
@ -25,7 +41,6 @@ in {
#unstable.sonic-visualiser #unstable.sonic-visualiser
sononym-crawler sononym-crawler
darktable darktable
#haskellPackages.mahlzeit
# rust development environment # rust development environment
rustup rustup
@ -40,8 +55,7 @@ in {
jetbrains.pycharm-professional jetbrains.pycharm-professional
jetbrains.datagrip jetbrains.datagrip
# foto element-desktop
#fuji-cam-wifi-tool
tor-browser-bundle-bin tor-browser-bundle-bin
#(tor-browser-bundle-bin.overrideAttrs (old: rec { #(tor-browser-bundle-bin.overrideAttrs (old: rec {
@ -56,6 +70,4 @@ in {
]; ];
environment.variables.RECIPE_HOME = "$HOME/mahlzeit";
} }