From a9fd67da3a7c090410c4fc20a49909fbeb6eab69 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 15 Oct 2023 17:44:47 -0400 Subject: [PATCH] feat: add proton-bridge module --- hosts/wim/cfg/packages.nix | 9 --------- hosts/wim/configuration.nix | 1 + modules/proton-bridge.nix | 10 ++++++++++ 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 modules/proton-bridge.nix diff --git a/hosts/wim/cfg/packages.nix b/hosts/wim/cfg/packages.nix index 1c3cd83c..fbe7e858 100644 --- a/hosts/wim/cfg/packages.nix +++ b/hosts/wim/cfg/packages.nix @@ -1,15 +1,6 @@ { pkgs, hyprland, ... }: { - systemd.user.services.protonmail-bridge = { - description = "Protonmail Bridge"; - enable = true; - script = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive --log-level info"; - path = [ pkgs.gnome.gnome-keyring ]; # HACK: https://github.com/ProtonMail/proton-bridge/issues/176 - wantedBy = [ "graphical-session.target" ]; - partOf = [ "graphical-session.target" ]; - }; - services = { xserver = { enable = true; diff --git a/hosts/wim/configuration.nix b/hosts/wim/configuration.nix index 659c6818..2d727da1 100644 --- a/hosts/wim/configuration.nix +++ b/hosts/wim/configuration.nix @@ -8,6 +8,7 @@ ../../modules/kmscon.nix ../../modules/plymouth.nix ../../modules/printer.nix + ../../modules/proton-bridge.nix ./cfg/main.nix ./home/main.nix diff --git a/modules/proton-bridge.nix b/modules/proton-bridge.nix new file mode 100644 index 00000000..12b00f3b --- /dev/null +++ b/modules/proton-bridge.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: { + systemd.user.services.protonmail-bridge = { + description = "Protonmail Bridge"; + enable = true; + script = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive --log-level info"; + path = [ pkgs.gnome.gnome-keyring ]; # HACK: https://github.com/ProtonMail/proton-bridge/issues/176 + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + }; +}