2020-04-24 23:36:52 +00:00
|
|
|
# GNOME Keyring daemon.
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.services.gnome.gnome-keyring;
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
2021-05-20 23:08:51 +00:00
|
|
|
services.gnome.gnome-keyring = {
|
2024-06-24 18:47:55 +00:00
|
|
|
enable = lib.mkEnableOption ''
|
|
|
|
GNOME Keyring daemon, a service designed to
|
|
|
|
take care of the user's security credentials,
|
|
|
|
such as user names and passwords
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-07-27 06:49:29 +00:00
|
|
|
environment.systemPackages = [ pkgs.gnome-keyring ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
services.dbus.packages = [
|
2024-07-27 06:49:29 +00:00
|
|
|
pkgs.gnome-keyring
|
2024-06-24 18:47:55 +00:00
|
|
|
pkgs.gcr
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
xdg.portal.extraPortals = [ pkgs.gnome-keyring ];
|
|
|
|
|
|
|
|
security.pam.services.login.enableGnomeKeyring = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
security.wrappers.gnome-keyring-daemon = {
|
2021-09-22 15:38:15 +00:00
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2020-04-24 23:36:52 +00:00
|
|
|
capabilities = "cap_ipc_lock=ep";
|
2024-07-27 06:49:29 +00:00
|
|
|
source = "${pkgs.gnome-keyring}/bin/gnome-keyring-daemon";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|