From 1cb7c6a4d101e59e863e975b3b053df66f239a63 Mon Sep 17 00:00:00 2001 From: Mirza Arnaut <21687187+arunoruto@users.noreply.github.com> Date: Wed, 11 Sep 2024 09:29:07 +0200 Subject: [PATCH] Add Terminals --- modules/home-manager/pc/default.nix | 1 + modules/home-manager/pc/terminal/default.nix | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/home-manager/pc/default.nix b/modules/home-manager/pc/default.nix index 324da98..fcfa1e0 100644 --- a/modules/home-manager/pc/default.nix +++ b/modules/home-manager/pc/default.nix @@ -22,5 +22,6 @@ desktop.enable = lib.mkDefault true; documents.enable = lib.mkDefault true; gui.enable = lib.mkDefault true; + terminals.enable = lib.mkDefault true; }; } diff --git a/modules/home-manager/pc/terminal/default.nix b/modules/home-manager/pc/terminal/default.nix index a0ea027..0e02471 100644 --- a/modules/home-manager/pc/terminal/default.nix +++ b/modules/home-manager/pc/terminal/default.nix @@ -1,11 +1,19 @@ -{lib, ...}: { +{ + lib, + config, + ... +}: { imports = [ ./alacritty.nix ./warp.nix ./wezterm.nix ]; - alacritty.enable = lib.mkDefault false; - warp.enable = lib.mkDefault true; - wezterm.enable = lib.mkDefault true; + options.terminals.enable = lib.mkEnableOption "Enable configured terminals"; + + config = lib.mkIf config.terminals.enable { + alacritty.enable = lib.mkDefault false; + warp.enable = lib.mkDefault true; + wezterm.enable = lib.mkDefault true; + }; }