at 23.11-pre 748 B view raw
1# Seahorse. 2 3{ config, pkgs, lib, ... }: 4 5with lib; 6 7{ 8 9 # Added 2019-08-27 10 imports = [ 11 (mkRenamedOptionModule 12 [ "services" "gnome3" "seahorse" "enable" ] 13 [ "programs" "seahorse" "enable" ]) 14 ]; 15 16 17 ###### interface 18 19 options = { 20 21 programs.seahorse = { 22 23 enable = mkEnableOption (lib.mdDoc "Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring"); 24 25 }; 26 27 }; 28 29 30 ###### implementation 31 32 config = mkIf config.programs.seahorse.enable { 33 34 programs.ssh.askPassword = mkDefault "${pkgs.gnome.seahorse}/libexec/seahorse/ssh-askpass"; 35 36 environment.systemPackages = [ 37 pkgs.gnome.seahorse 38 ]; 39 40 services.dbus.packages = [ 41 pkgs.gnome.seahorse 42 ]; 43 44 }; 45 46}