From b431744859daa1cf69ed97d5e1921d8c8574195c Mon Sep 17 00:00:00 2001 From: osbm Date: Tue, 21 Oct 2025 20:51:32 +0300 Subject: [PATCH] automatically enable graphic apps by default --- modules/nixos/options.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/options.nix b/modules/nixos/options.nix index 673b064..1b566c3 100644 --- a/modules/nixos/options.nix +++ b/modules/nixos/options.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, config, ... }: { options.osbmModules = { # Desktop Environment @@ -80,7 +80,7 @@ graphical = { enable = lib.mkOption { type = lib.types.bool; - default = false; + default = config.osbmModules.desktopEnvironment != "none"; description = "Enable graphical applications"; }; };