refactor: change how inclusion of config works

This commit is contained in:
Nydragon 2024-06-25 14:46:20 +02:00
parent dca42a7462
commit f2e1e9c5d2
No known key found for this signature in database
GPG key ID: 14AA30A865EA1209
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# Reference https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
{ lib, config, ... }:
{
programs.firefox = lib.mkIf config.programs.firefox.enable {
lib.mkIf config.programs.firefox.enable {
programs.firefox = {
preferencesStatus = "locked";
preferences = {
"browser.bookmarks.restore_default_bookmarks" = false;

View file

@ -4,8 +4,8 @@
config,
...
}:
{
programs.steam = lib.mkIf config.programs.steam.enable {
lib.mkIf config.programs.steam.enable {
programs.steam = {
gamescopeSession.enable = true;
extest.enable = true;
localNetworkGameTransfers.openFirewall = true;

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
{
programs.thunderbird = lib.mkIf config.programs.thunderbird.enable {
lib.mkIf config.programs.thunderbird.enable {
programs.thunderbird = {
preferencesStatus = "locked";
preferences = {
"mail.biff.play_sound" = false;