diff options
Diffstat (limited to 'modules/nextcloud.nix')
| -rw-r--r-- | modules/nextcloud.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix deleted file mode 100644 index 81561d9..0000000 --- a/modules/nextcloud.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.nextcloud.enable = lib.mkEnableOption "Enable nextcloud and setup"; - config = lib.mkIf config.nextcloud.enable { - home.file.".netrc".text = ''default - login exmaple - password test123 - ''; - - home.packages = pkgs.nextcloud-client; - - systemd.user = { - services.nextcloud-autosync = { - Unit = { - Description = "Auto sync Nextcloud"; - After = "network-online.target"; - }; - Service = { - Type = "simple"; - ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -h -n https://cloud.schererleander.de"; - TimeoutStopSec = "180"; - KillMode = "process"; - KillSignal = "SIGINT"; - }; - Install.WantedBy = ["multi-user.target"]; - }; - timers.nextcloud-autosync = { - Unit.Description = "Automatic sync files with Nextcloud when booted up after 5 minutes then rerun every 60 minutes"; - Timer.OnBootSec = "5min"; - Timer.OnUnitActiveSec = "60min"; - Install.WantedBy = ["multi-user.target" "timers.target"]; - }; - startServices = true; - }; - }; -}
\ No newline at end of file |
