refactor: change how inclusion of config works
This commit is contained in:
parent
dca42a7462
commit
f2e1e9c5d2
3 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Reference https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
# Reference https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
lib.mkIf config.programs.firefox.enable {
|
||||||
programs.firefox = lib.mkIf config.programs.firefox.enable {
|
programs.firefox = {
|
||||||
preferencesStatus = "locked";
|
preferencesStatus = "locked";
|
||||||
preferences = {
|
preferences = {
|
||||||
"browser.bookmarks.restore_default_bookmarks" = false;
|
"browser.bookmarks.restore_default_bookmarks" = false;
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
lib.mkIf config.programs.steam.enable {
|
||||||
programs.steam = lib.mkIf config.programs.steam.enable {
|
programs.steam = {
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
extest.enable = true;
|
extest.enable = true;
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
lib.mkIf config.programs.thunderbird.enable {
|
||||||
programs.thunderbird = lib.mkIf config.programs.thunderbird.enable {
|
programs.thunderbird = {
|
||||||
preferencesStatus = "locked";
|
preferencesStatus = "locked";
|
||||||
preferences = {
|
preferences = {
|
||||||
"mail.biff.play_sound" = false;
|
"mail.biff.play_sound" = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue