1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/nixos/modules/programs/seahorse.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
748 B
Nix
Raw Normal View History

2019-08-27 09:03:10 +01:00
# 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 (lib.mdDoc "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";
2019-08-27 09:03:10 +01:00
environment.systemPackages = [
pkgs.gnome.seahorse
2019-08-27 09:03:10 +01:00
];
services.dbus.packages = [
pkgs.gnome.seahorse
2019-08-27 09:03:10 +01:00
];
};
}