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; + }; }