From 59c25c883a328b2a772232b0fef00e8575ec7050 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 11 Jul 2024 16:02:26 +0200 Subject: [PATCH] Enable kwallet as a secrets dbus module --- modules/common/linux/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/common/linux/default.nix b/modules/common/linux/default.nix index 08309c1..9fde937 100644 --- a/modules/common/linux/default.nix +++ b/modules/common/linux/default.nix @@ -50,6 +50,14 @@ let environment.systemPackages = with pkgs; [ piper ]; }; + kwallet = { pkgs, lib, ... }: mkIf cfg.enable { + environment.systemPackages = [ pkgs.kdePackages.kwallet ]; + services.dbus.packages = [ pkgs.kdePackages.kwallet ]; + xdg.portal = { + extraPortals = [ pkgs.kdePackages.kwallet ]; + }; + }; + virtualisation = { pkgs, ... }: mkIf cfg.enable { virtualisation.podman = { enable = true; @@ -96,7 +104,7 @@ let }; in { - imports = with modules; [ adb ios wlr logitech virtualisation accounts rt-audio ]; + imports = with modules; [ adb ios wlr logitech kwallet virtualisation accounts rt-audio ]; options.common.linux = { enable = mkOption { @@ -306,7 +314,7 @@ in # gtk portal needed to make gtk apps happy extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-gtk ]; - config.sway.default = [ "wlr" "kde" ]; + config.sway.default = [ "wlr" "kde" "kwallet" ]; }; # D-Bus services.dbus.packages = with pkgs; [ gcr ];