make terminal module default module thingy

This commit is contained in:
Schrottkatze 2024-03-05 18:51:30 +01:00
parent 7bacabf0d3
commit 2a5e635c0d
No known key found for this signature in database

View file

@ -1,17 +1,5 @@
{ {...}: {
config, environment.sessionVariables = {
lib,
pkgs,
...
}: let
cfg = config.jade.terminal;
in
with lib; {
options.jade.terminal = {
enable = mkEnableOption "Enable Kitty";
};
config = mkIf cfg.enable {
environment.sessionVariables = rec {
TERMINAL = "kitty"; TERMINAL = "kitty";
}; };
home-manager.users.jade = {pkgs, ...}: { home-manager.users.jade = {pkgs, ...}: {
@ -45,5 +33,4 @@ in
}; };
}; };
}; };
};
} }