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"; options.enableFirefox = lib.mkEnableOption "enableFirefox";
config = { config = {
programs.firefox = { programs.firefox = {
enable = true; enable = config.enableFirefox;
languagePacks = [ languagePacks = [
"ja" "ja"
"tr" "tr"

View file

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