bind the options to the config

This commit is contained in:
Osman Faruk Bayram 2025-04-29 02:25:55 +03:00
parent 1cbae3f1fb
commit 0eb3894419
2 changed files with 5 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{lib, ...}: {
{lib, config, ...}: {
options.enableFirefox = lib.mkEnableOption "enableFirefox";
config = {
programs.firefox = {
enable = true;
enable = config.enableFirefox;
languagePacks = [
"ja"
"tr"

View file

@ -1,6 +1,7 @@
{
pkgs,
lib,
config,
...
}: {
options = {
@ -12,10 +13,10 @@
home.pointerCursor = {
name = "Dracula";
package = pkgs.dracula-theme;
gtk.enable = true;
gtk.enable = config.enableGTK;
};
gtk = {
enable = true;
enable = config.enableGTK;
theme = {
name = "Dracula";
package = pkgs.dracula-theme;