3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
46 lines
736 B
Nix
46 lines
736 B
Nix
# Seahorse.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
# Added 2019-08-27
|
|
imports = [
|
|
(mkRenamedOptionModule
|
|
[ "services" "gnome3" "seahorse" "enable" ]
|
|
[ "programs" "seahorse" "enable" ])
|
|
];
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.seahorse = {
|
|
|
|
enable = mkEnableOption "Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.programs.seahorse.enable {
|
|
|
|
programs.ssh.askPassword = mkDefault "${pkgs.gnome.seahorse}/libexec/seahorse/ssh-askpass";
|
|
|
|
environment.systemPackages = [
|
|
pkgs.gnome.seahorse
|
|
];
|
|
|
|
services.dbus.packages = [
|
|
pkgs.gnome.seahorse
|
|
];
|
|
|
|
};
|
|
|
|
}
|