refactor modules/desktop

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-23 14:34:42 +03:00
parent 56bad06595
commit 52dcc3279e
11 changed files with 137 additions and 143 deletions

View File

@ -0,0 +1,25 @@
{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.module.desktop.gnome-keyring;
in {
options = {
module.desktop.gnome-keyring.enable = mkEnableOption "enable gnome keyring";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gcr_4
libsecret
];
# programs.seahorse.enable = true;
services.gnome.gnome-keyring.enable = true;
xdg.portal.config.common = {
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
};
}