1

Disable stuff on plasma

This commit is contained in:
2023-01-14 13:37:10 +01:00
parent f3d94c4a7a
commit f05e8d209e

View File

@ -28,23 +28,24 @@ in {
# I want to have nextcloud-client in the path when the module is enabled # I want to have nextcloud-client in the path when the module is enabled
home.packages = with pkgs; [ nextcloud-client ]; home.packages = with pkgs; [ nextcloud-client ];
systemd.user.services = (mkIf cfg.autostart) { # TODO: Disable only for plasma
autostart-nextcloud-client = { # systemd.user.services = (mkIf cfg.autostart) {
Unit = { # autostart-nextcloud-client = {
Description = "Nextcloud Client"; # Unit = {
PartOf = [ "graphical-session.target" ]; # Description = "Nextcloud Client";
# PartOf = [ "graphical-session.target" ];
# was graphical-session-pre.target originally in HM # # was graphical-session-pre.target originally in HM
After = [ "graphical-session.target" "network-online.target" ]; # After = [ "graphical-session.target" "network-online.target" ];
}; # };
Service = { # Service = {
Environment = "PATH=${config.home.profileDirectory}/bin"; # Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background"; # ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
}; # };
Install.WantedBy = [ "graphical-session.target" ]; # Install.WantedBy = [ "graphical-session.target" ];
}; # };
}; # };
}; };
} }