home: terminal: termite: add 'enable'
This commit is contained in:
parent
5e5f63eb26
commit
0a927c5cc0
1 changed files with 8 additions and 2 deletions
|
|
@ -1,10 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.my.home.terminal;
|
cfg = config.my.home.terminal.termite;
|
||||||
inherit (config.my.home.terminal) colors;
|
inherit (config.my.home.terminal) colors;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf (cfg.default == "termite") {
|
options.my.home.terminal.termite = with lib; {
|
||||||
|
enable = lib.mkEnableOption "termite" // {
|
||||||
|
default = config.my.home.terminal.default == "termite";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
programs.termite = {
|
programs.termite = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue