users/foo-dogsquared: make Firefox config optional

Only when the Firefox Nix module is not configured.
This commit is contained in:
Gabriel Arazas 2023-09-25 15:28:59 +08:00
parent e4d23b596c
commit a09e0c246e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,5 +1,5 @@
# WHOA! Even browsers with extensions can be declarative!
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, osConfig ? { }, ... }:
{
home.packages = with pkgs; [
@ -33,7 +33,7 @@
};
# Despite the name, it isn't a browser for furries.
programs.firefox = {
programs.firefox = lib.mkIf (osConfig ? programs.firefox.enable && !osConfig.programs.firefox.enable) {
enable = true;
package = with pkgs; wrapFirefox firefox-unwrapped {