services/nextcloud: switch to owncloud

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit b46922bd1c

View file

@ -7,13 +7,13 @@
inherit (lib.meta) getExe'; inherit (lib.meta) getExe';
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
cfg = config.modules.system.services.nextcloud; cfg = config.modules.system.services.owncloud;
in { in {
options.modules.system.services.nextcloud.enable = lib.mkEnableOption "nextcloud"; options.modules.system.services.owncloud.enable = lib.mkEnableOption "owncloud";
config = { config = {
systemd.user.services.nextcloud = mkIf cfg.enable { systemd.user.services.owncloud = mkIf cfg.enable {
description = "Nextcloud client service"; description = "Owncloud client service";
# makes the graphical session start this service when it starts # makes the graphical session start this service when it starts
wantedBy = ["graphical-session.target"]; wantedBy = ["graphical-session.target"];
@ -23,7 +23,7 @@ in {
after = ["graphical-session.target"]; after = ["graphical-session.target"];
serviceConfig = { serviceConfig = {
ExecStart = "${getExe' pkgs.nextcloud-client "nextcloud"} --background"; ExecStart = "${getExe' pkgs.owncloud-client "owncloud"}";
Restart = "always"; Restart = "always";
RestartSec = 30; RestartSec = 30;