about summary refs log tree commit diff
path: root/nixos/modules/programs/seahorse.nix
blob: 53fff50e0a8b908ebf36128fb666a6391dba4261 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.gnome.seahorse}/libexec/seahorse/ssh-askpass";

    environment.systemPackages = [
      pkgs.gnome.seahorse
    ];

    services.dbus.packages = [
      pkgs.gnome.seahorse
    ];

  };

}