Add kitty terminal to alpheratz
This commit is contained in:
@@ -16,5 +16,6 @@
|
||||
./system.nix
|
||||
./laptop.nix
|
||||
./school.nix
|
||||
./term.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -33,12 +33,6 @@ in
|
||||
|
||||
};
|
||||
|
||||
terminal = mkOption {
|
||||
description = "Which terminal to install (alacritty)";
|
||||
type = types.enum [ pkgs.alacritty ];
|
||||
default = pkgs.alacritty;
|
||||
};
|
||||
|
||||
gtk = mkOption {
|
||||
description = "Whether to configure gtk";
|
||||
type = types.bool;
|
||||
|
||||
26
modules/options/term.nix
Normal file
26
modules/options/term.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
|
||||
with lib; let
|
||||
cfg = config.simmer.term;
|
||||
gui = config.simmer.gui;
|
||||
in
|
||||
{
|
||||
options.simmer.term = {
|
||||
enable = mkOption {
|
||||
description = "Whether to install and configure a terminal";
|
||||
type = types.bool;
|
||||
default = gui.enable;
|
||||
};
|
||||
|
||||
terminal = mkOption {
|
||||
description = "Which terminal to install (alcritty, kitty)";
|
||||
type = types.enum [ "alacritty" "kitty" ];
|
||||
default = "alacritty";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user