2023-10-27 14:01:54 +02:00
|
|
|
{ config, lib, pkgs, materusArg, ... }:
|
2024-03-11 16:19:31 +01:00
|
|
|
let
|
|
|
|
cfg = config.materus.profile.browser;
|
2024-03-30 15:41:52 +01:00
|
|
|
osConfig = (if (builtins.hasAttr "osConfig" config._module.args) then config._module.args.osConfig else null);
|
2023-10-08 11:42:08 +02:00
|
|
|
in
|
|
|
|
{
|
2024-03-11 16:19:31 +01:00
|
|
|
|
|
|
|
options = let mkBoolOpt = materusArg.pkgs.lib.mkBoolOpt; in {
|
2024-03-30 15:26:48 +01:00
|
|
|
materus.profile.browser.firefox.enable = mkBoolOpt false "Enable Firefox with materus cfg";
|
|
|
|
materus.profile.browser.vivaldi.enable = mkBoolOpt false "Enable Vivaldi with materus cfg";
|
2024-03-11 16:19:31 +01:00
|
|
|
materus.profile.browser.brave.enable = mkBoolOpt false "Enable Brave with materus cfg";
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
#TODO: Make some config
|
2024-03-30 15:41:52 +01:00
|
|
|
config = lib.mkMerge [{
|
2024-03-30 15:34:52 +01:00
|
|
|
home.packages = [
|
|
|
|
(lib.mkIf cfg.firefox.enable config.materus.profile.packages.firefox)
|
|
|
|
(lib.mkIf cfg.vivaldi.enable pkgs.vivaldi)
|
|
|
|
(lib.mkIf cfg.brave.enable pkgs.brave)
|
|
|
|
];
|
2024-03-30 15:41:52 +01:00
|
|
|
}
|
|
|
|
];
|
2023-10-08 11:42:08 +02:00
|
|
|
|
2024-03-11 16:19:31 +01:00
|
|
|
|
|
|
|
}
|