feat(terminal): add enable option

This commit is contained in:
2026-05-22 10:22:37 +02:00
parent a3c24382f8
commit e84079647b
4 changed files with 11 additions and 2 deletions

View File

@@ -59,6 +59,7 @@
shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true;
audio.enable = true;
terminal.enable = true;
devenv.enable = true;
keepassxc.enable = true;
direnv.enable = true;

View File

@@ -56,6 +56,7 @@
shell.bash.addBinToPath = true;
my.yubikey.enable = true;
audio.enable = true;
terminal.enable = true;
devenv.enable = true;
keepassxc.enable = true;
direnv.enable = true;

View File

@@ -65,6 +65,7 @@
browser.primary = "firefox";
devenv.enable = true;
terminal.enable = true;
keepassxc.enable = true;
direnv.enable = true;
nvim.enable = true;

View File

@@ -1,12 +1,18 @@
{
pkgs,
config,
lib,
pkgs,
dotsPath,
...
}:
let
cfg = config.terminal;
in
{
config = {
options.terminal.enable = lib.mkEnableOption "terminal";
config = lib.mkIf cfg.enable {
programs.bash.shellAliases = {
icat = "kitty +kitten icat";
};