From f05e8d209ef1fa5f063aa35801ea11c92dc82f44 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 14 Jan 2023 13:37:10 +0100 Subject: [PATCH] Disable stuff on plasma --- home/modules/nextcloud.nix | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/home/modules/nextcloud.nix b/home/modules/nextcloud.nix index bc972b66..6d544344 100644 --- a/home/modules/nextcloud.nix +++ b/home/modules/nextcloud.nix @@ -28,23 +28,24 @@ in { # I want to have nextcloud-client in the path when the module is enabled home.packages = with pkgs; [ nextcloud-client ]; - systemd.user.services = (mkIf cfg.autostart) { - autostart-nextcloud-client = { - Unit = { - Description = "Nextcloud Client"; - PartOf = [ "graphical-session.target" ]; + # TODO: Disable only for plasma + # systemd.user.services = (mkIf cfg.autostart) { + # autostart-nextcloud-client = { + # Unit = { + # Description = "Nextcloud Client"; + # PartOf = [ "graphical-session.target" ]; - # was graphical-session-pre.target originally in HM - After = [ "graphical-session.target" "network-online.target" ]; - }; + # # was graphical-session-pre.target originally in HM + # After = [ "graphical-session.target" "network-online.target" ]; + # }; - Service = { - Environment = "PATH=${config.home.profileDirectory}/bin"; - ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background"; - }; + # Service = { + # Environment = "PATH=${config.home.profileDirectory}/bin"; + # ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background"; + # }; - Install.WantedBy = [ "graphical-session.target" ]; - }; - }; + # Install.WantedBy = [ "graphical-session.target" ]; + # }; + # }; }; }