Enable kwallet as a secrets dbus module

This commit is contained in:
Natsu Kagami 2024-07-11 16:02:26 +02:00
parent 567542d665
commit 59c25c883a
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -50,6 +50,14 @@ let
environment.systemPackages = with pkgs; [ piper ]; 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 = { pkgs, ... }: mkIf cfg.enable {
virtualisation.podman = { virtualisation.podman = {
enable = true; enable = true;
@ -96,7 +104,7 @@ let
}; };
in 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 = { options.common.linux = {
enable = mkOption { enable = mkOption {
@ -306,7 +314,7 @@ in
# gtk portal needed to make gtk apps happy # gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde pkgs.xdg-desktop-portal-gtk ]; 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 # D-Bus
services.dbus.packages = with pkgs; [ gcr ]; services.dbus.packages = with pkgs; [ gcr ];