Nixerus/configurations/profile/home/browser.nix

21 lines
724 B
Nix
Raw Normal View History

2023-05-18 12:07:07 +02:00
{ config, lib, pkgs, materusPkgs, ... }:
let
cfg = config.materus.profile.browser;
in
{
options= let mkBoolOpt = materusPkgs.lib.mkBoolOpt; in{
materus.profile.browser.firefox.enable = mkBoolOpt config.materus.profile.enableDesktop "Enable Firefox with materus cfg";
2023-08-31 11:01:38 +02:00
materus.profile.browser.vivaldi.enable = mkBoolOpt config.materus.profile.enableDesktop "Enable Vivaldi with materus cfg";
materus.profile.browser.brave.enable = mkBoolOpt false "Enable Brave with materus cfg";
2023-05-18 12:07:07 +02:00
};
#TODO: Make some config
config.home.packages = [
(lib.mkIf cfg.firefox.enable config.materus.profile.packages.firefox)
(lib.mkIf cfg.vivaldi.enable pkgs.vivaldi)
2023-07-03 21:51:16 +02:00
(lib.mkIf cfg.brave.enable pkgs.brave)
2023-05-18 12:07:07 +02:00
];
}