mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
users/foo-dogsquared: make Firefox config optional
Only when the Firefox Nix module is not configured.
This commit is contained in:
parent
e4d23b596c
commit
a09e0c246e
@ -1,5 +1,5 @@
|
|||||||
# WHOA! Even browsers with extensions can be declarative!
|
# WHOA! Even browsers with extensions can be declarative!
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, osConfig ? { }, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@ -33,7 +33,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Despite the name, it isn't a browser for furries.
|
# 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;
|
enable = true;
|
||||||
|
|
||||||
package = with pkgs; wrapFirefox firefox-unwrapped {
|
package = with pkgs; wrapFirefox firefox-unwrapped {
|
||||||
|
Loading…
Reference in New Issue
Block a user