From c8d584f8a4c0899cf843f55b1a398c00f7ce08bf Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 30 Mar 2024 15:41:52 +0100 Subject: [PATCH] configuration: prepare for browser changes --- configurations/profile/home/browser.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configurations/profile/home/browser.nix b/configurations/profile/home/browser.nix index 910731f..7908a5e 100644 --- a/configurations/profile/home/browser.nix +++ b/configurations/profile/home/browser.nix @@ -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) ]; - }; + } + ]; }