diff options
author | pajowu <git@ca.pajowu.de> | 2017-04-10 19:53:16 +0200 |
---|---|---|
committer | pajowu <git@ca.pajowu.de> | 2017-04-10 20:06:53 +0200 |
commit | 857a3b872c430fd9a2fb09a07146ad0a9af36e07 (patch) | |
tree | 9bd3986b79ccb6837fd6efd68ed203252ab5c341 /nixos/modules/programs/browserpass.nix | |
parent | 1bb8a47803ea5015de2fcc3f99fd2323e7de1d91 (diff) | |
download | nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar.gz nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar.bz2 nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar.lz nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar.xz nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.tar.zst nixlib-857a3b872c430fd9a2fb09a07146ad0a9af36e07.zip |
browserpass: init at 1.0.2
Diffstat (limited to 'nixos/modules/programs/browserpass.nix')
-rw-r--r-- | nixos/modules/programs/browserpass.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/programs/browserpass.nix b/nixos/modules/programs/browserpass.nix new file mode 100644 index 000000000000..f550334c84cc --- /dev/null +++ b/nixos/modules/programs/browserpass.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + + ###### interface + options = { + programs.browserpass = { + enable = mkOption { + default = false; + type = types.bool; + description = '' + Wheter to install the NativeMessaging configuration for installed browsers. + ''; + }; + }; + }; + + ###### implementation + config = mkIf config.programs.browserpass.enable { + environment.systemPackages = [ pkgs.browserpass ]; + environment.etc."chromium/native-messaging-hosts/com.dannyvankooten.browserpass.json".source = "${pkgs.browserpass}/etc/chrome-host.json"; + environment.etc."opt/chrome/native-messaging-hosts/com.dannyvankooten.browserpass.json".source = "${pkgs.browserpass}/etc/chrome-host.json"; + }; +} |