home: terminal: termite: add 'enable'
This commit is contained in:
parent
4d9bab8daf
commit
6a7037f2a6
1 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.terminal;
|
||||
cfg = config.my.home.terminal.termite;
|
||||
inherit (config.my.home.terminal) colors;
|
||||
in
|
||||
{
|
||||
|
|
@ -8,9 +8,15 @@ in
|
|||
default = mkOption {
|
||||
type = with types; nullOr (enum [ "termite" ]);
|
||||
};
|
||||
|
||||
termite = {
|
||||
enable = mkEnableOption "termite" // {
|
||||
default = config.my.home.terminal.default == "termite";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (cfg.default == "termite") {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.termite = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue