mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
36 lines
559 B
Nix
36 lines
559 B
Nix
# Seahorse.
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
programs.seahorse = {
|
|
|
|
enable = lib.mkEnableOption "Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf config.programs.seahorse.enable {
|
|
|
|
programs.ssh.askPassword = lib.mkDefault "${pkgs.seahorse}/libexec/seahorse/ssh-askpass";
|
|
|
|
environment.systemPackages = [
|
|
pkgs.seahorse
|
|
];
|
|
|
|
services.dbus.packages = [
|
|
pkgs.seahorse
|
|
];
|
|
|
|
};
|
|
|
|
}
|