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 | |
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')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/browserpass.nix | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index f7608a57d714..75b96bbd4141 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -71,6 +71,7 @@ ./programs/atop.nix ./programs/bash/bash.nix ./programs/blcr.nix + ./programs/browserpass.nix ./programs/cdemu.nix ./programs/chromium.nix ./programs/command-not-found/command-not-found.nix 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"; + }; +} |