1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

qutebrowser: add package option

Fixes #1315
PR #1334
This commit is contained in:
Jonathan Reeve 2020-06-15 14:29:19 -04:00 committed by Robert Helgesson
parent ecb93ab9ae
commit ad4f33cfc4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -36,6 +36,13 @@ in {
options.programs.qutebrowser = {
enable = mkEnableOption "qutebrowser";
package = mkOption {
type = types.package;
default = pkgs.qutebrowser;
defaultText = literalExample "pkgs.qutebrowser";
description = "Qutebrowser package to install.";
};
aliases = mkOption {
type = types.attrsOf types.str;
default = { };
@ -246,7 +253,7 @@ in {
};
config = mkIf cfg.enable {
home.packages = [ pkgs.qutebrowser ];
home.packages = [ cfg.package ];
xdg.configFile."qutebrowser/config.py".text = concatStringsSep "\n" ([ ]
++ mapAttrsToList (formatLine "c.") cfg.settings