nixdots/system/roles/workstation/services/gnome-keyring.nix

26 lines
599 B
Nix
Raw Normal View History

2024-07-26 23:07:07 +00:00
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
in {
config = mkIf (builtins.elem deviceType acceptedTypes) {
services = {
udev.packages = with pkgs; [gnome.gnome-settings-daemon];
gnome.gnome-keyring.enable = true;
};
# seahorse is an application for managing encryption keys
# and passwords in the gnome keyring
programs.seahorse.enable = true;
xdg.portal.config.common = {
2024-07-26 23:07:07 +00:00
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
};
};
}