forked from Shinonome/dots-hyprland
environment etc
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
@@ -12,6 +13,13 @@
|
||||
types
|
||||
;
|
||||
cfg = config.illogical-impulse.terminal;
|
||||
|
||||
commonTerminalConfig = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
starship
|
||||
eza
|
||||
];
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
illogical-impulse.terminal = {
|
||||
@@ -22,8 +30,6 @@ in {
|
||||
Whether to enable the terminal-related configuration for this user.
|
||||
'';
|
||||
};
|
||||
|
||||
# New option to choose the terminal emulator.
|
||||
terminalEmulator = mkOption {
|
||||
type = types.enum ["foot" "kitty"];
|
||||
default = "foot";
|
||||
@@ -34,17 +40,29 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
(mkIf (cfg.terminalEmulator == "foot") {
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
};
|
||||
})
|
||||
config = mkIf cfg.enable (
|
||||
mkMerge [
|
||||
commonTerminalConfig
|
||||
|
||||
(mkIf (cfg.terminalEmulator == "kitty") {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
};
|
||||
})
|
||||
]);
|
||||
(mkIf (cfg.terminalEmulator == "foot") {
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
# Foot-specific configuration
|
||||
settings = {
|
||||
main.font = "FiraCode Nerd Font:size=10";
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg.terminalEmulator == "kitty") {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "FiraCode Nerd Font Mono";
|
||||
font_size = 10.0;
|
||||
};
|
||||
};
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user