1

Disable stuff on plasma

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

View File

@ -29,41 +29,43 @@ in {
systemd.user.services = mkMerge [ systemd.user.services = mkMerge [
(optionalAttrs (cfg.keepass.enable && cfg.keepass.autostart) { (optionalAttrs (cfg.keepass.enable && cfg.keepass.autostart) {
autostart-keepass = { # TODO: Disable only for plasma
Unit = { # autostart-keepass = {
Type = "oneshot"; # Unit = {
Description = "KeePassXC password manager"; # Type = "oneshot";
PartOf = [ "graphical-session.target" ]; # Description = "KeePassXC password manager";
After = [ "graphical-session.target" ]; # PartOf = [ "graphical-session.target" ];
}; # After = [ "graphical-session.target" ];
# };
Service = { # Service = {
# Environment = "PATH=${config.home.profileDirectory}/bin"; # Leads to /etc/profiles/per-user/christoph/bin # # Environment = "PATH=${config.home.profileDirectory}/bin"; # Leads to /etc/profiles/per-user/christoph/bin
ExecStart = "${pkgs.keepassxc}/bin/keepassxc ${config.home.homeDirectory}/Documents/KeePass/passwords.kbdx"; # ExecStart = "${pkgs.keepassxc}/bin/keepassxc ${config.home.homeDirectory}/Documents/KeePass/passwords.kbdx";
# ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u"; # # ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u";
Restart = "on-failure"; # Restart = "on-failure";
}; # };
Install.WantedBy = [ "graphical-session.target" ]; # Install.WantedBy = [ "graphical-session.target" ];
}; # };
}) })
# TODO: Disable only for plasma
# TODO: Error: has no wallet, find out how to get imap credentials from this # TODO: Error: has no wallet, find out how to get imap credentials from this
(optionalAttrs (cfg.protonmail.enable && cfg.protonmail.autostart) { # (optionalAttrs (cfg.protonmail.enable && cfg.protonmail.autostart) {
autostart-protonmail = { # autostart-protonmail = {
Unit = { # Unit = {
Description = "ProtonMail Bridge"; # Description = "ProtonMail Bridge";
After = [ "network.target" ]; # After = [ "network.target" ];
}; # };
Service = { # Service = {
ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --no-window --log-level info --noninteractive"; # ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --no-window --log-level info --noninteractive";
Restart = "always"; # Restart = "always";
}; # };
Install.WantedBy = [ "default.target" ]; # Install.WantedBy = [ "default.target" ];
}; # };
}) # })
]; ];
}; };
} }