Move gnome-keyring to system-wide config

This commit is contained in:
ItsDrike 2024-06-25 01:30:54 +02:00
parent a6eb7496f7
commit 70800ff0ab
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 21 additions and 13 deletions

View file

@ -1,6 +1,5 @@
_: {
imports = [
./dunst.nix
./gnome-keyring.nix
];
}

View file

@ -1,12 +0,0 @@
{pkgs, ...}: {
config = {
services.gnome-keyring.enable = true;
xdg.portal.config.common = {
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
# Enable seahorse (application for managing encryption keys
# and passwords in the gnome keyring)
home.packages = with pkgs; [ seahorse ];
};
}

View file

@ -4,6 +4,7 @@
./mount.nix
./printing.nix
./misc.nix
./gnome-keyring.nix
];
}

View file

@ -0,0 +1,20 @@
{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 = {
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
};
}