mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
parent
ecb93ab9ae
commit
ad4f33cfc4
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue