diff --git a/nixos/modules/programs/firefox.nix b/nixos/modules/programs/firefox.nix index 66e6c7afb6f8..a184aa50f74e 100644 --- a/nixos/modules/programs/firefox.nix +++ b/nixos/modules/programs/firefox.nix @@ -278,11 +278,11 @@ in environment.systemPackages = [ (cfg.package.override (old: { extraPrefsFiles = - old.extraPrefsFiles + (old.extraPrefsFiles or [ ]) ++ cfg.autoConfigFiles ++ [ (pkgs.writeText "firefox-autoconfig.js" cfg.autoConfig) ]; - nativeMessagingHosts = old.nativeMessagingHosts ++ cfg.nativeMessagingHosts.packages; - cfg = old.cfg // cfg.wrapperConfig; + nativeMessagingHosts = (old.nativeMessagingHosts or [ ]) ++ cfg.nativeMessagingHosts.packages; + cfg = (old.cfg or { }) // cfg.wrapperConfig; })) ];