From f3d94c4a7a1751e3cee61f5d8af7c2684480d0ce Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 14 Jan 2023 13:37:04 +0100 Subject: [PATCH] Disable stuff on plasma --- home/modules/misc.nix | 58 ++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/home/modules/misc.nix b/home/modules/misc.nix index 96a3b1a0..21750f93 100644 --- a/home/modules/misc.nix +++ b/home/modules/misc.nix @@ -29,41 +29,43 @@ in { systemd.user.services = mkMerge [ (optionalAttrs (cfg.keepass.enable && cfg.keepass.autostart) { - autostart-keepass = { - Unit = { - Type = "oneshot"; - Description = "KeePassXC password manager"; - PartOf = [ "graphical-session.target" ]; - After = [ "graphical-session.target" ]; - }; + # TODO: Disable only for plasma + # autostart-keepass = { + # Unit = { + # Type = "oneshot"; + # Description = "KeePassXC password manager"; + # PartOf = [ "graphical-session.target" ]; + # After = [ "graphical-session.target" ]; + # }; - Service = { - # 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"; - # ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u"; - Restart = "on-failure"; - }; + # Service = { + # # 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"; + # # ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u"; + # 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 - (optionalAttrs (cfg.protonmail.enable && cfg.protonmail.autostart) { - autostart-protonmail = { - Unit = { - Description = "ProtonMail Bridge"; - After = [ "network.target" ]; - }; + # (optionalAttrs (cfg.protonmail.enable && cfg.protonmail.autostart) { + # autostart-protonmail = { + # Unit = { + # Description = "ProtonMail Bridge"; + # After = [ "network.target" ]; + # }; - Service = { - ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --no-window --log-level info --noninteractive"; - Restart = "always"; - }; + # Service = { + # ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --no-window --log-level info --noninteractive"; + # Restart = "always"; + # }; - Install.WantedBy = [ "default.target" ]; - }; - }) + # Install.WantedBy = [ "default.target" ]; + # }; + # }) ]; }; }