mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
qutebrowser: null package support (#7203)
This commit is contained in:
parent
3830a21aa2
commit
ffab96a8b4
1 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ in
|
|||
options.programs.qutebrowser = {
|
||||
enable = lib.mkEnableOption "qutebrowser";
|
||||
|
||||
package = lib.mkPackageOption pkgs "qutebrowser" { };
|
||||
package = lib.mkPackageOption pkgs "qutebrowser" { nullable = true; };
|
||||
|
||||
aliases = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
|
|
@ -338,7 +338,7 @@ in
|
|||
) pkgs.linkFarmFromDrvs "greasemonkey-userscripts" cfg.greasemonkey;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
home.file.".qutebrowser/config.py" = mkIf pkgs.stdenv.hostPlatform.isDarwin {
|
||||
text = qutebrowserConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue