configuration: prepare for browser changes

This commit is contained in:
Mateusz Słodkowicz 2024-03-30 15:41:52 +01:00
parent 1ccceb3415
commit c8d584f8a4
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
{ config, lib, pkgs, materusArg, ... }:
let
cfg = config.materus.profile.browser;
osConfig = (if (builtins.hasAttr "osConfig" config._module.args) then config._module.args.osConfig else null);
in
{
@ -11,13 +12,14 @@ in
};
#TODO: Make some config
config = {
config = lib.mkMerge [{
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)
];
};
}
];
}