mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:49:41 +00:00
Move gnome-keyring to system-wide config
This commit is contained in:
parent
a6eb7496f7
commit
70800ff0ab
|
@ -1,6 +1,5 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./dunst.nix
|
./dunst.nix
|
||||||
./gnome-keyring.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -4,6 +4,7 @@
|
||||||
./mount.nix
|
./mount.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
./misc.nix
|
./misc.nix
|
||||||
|
./gnome-keyring.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
20
system/roles/workstation/services/gnome-keyring.nix
Normal file
20
system/roles/workstation/services/gnome-keyring.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue