add xfce4-terminal

This commit is contained in:
datsudo 2025-06-02 21:37:47 +08:00
parent 8cf4840195
commit 98a882dd4c
2 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,7 @@
terminals.ghostty.enable = true; terminals.ghostty.enable = true;
terminals.alacritty.enable = true; terminals.alacritty.enable = true;
terminals.xfceTerminal.enable = true;
shells.fish.enable = false; shells.fish.enable = false;

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
inherit (lib) mkIf mkOption types; inherit (lib) mkIf mkOption types;
@ -19,12 +19,18 @@ in
default = false; default = false;
type = types.bool; type = types.bool;
}; };
xfceTerminal.enable = mkOption {
default = false;
type = types.bool;
};
}; };
config = { config = {
subs.ghostty.enable = cfg.ghostty.enable; subs.ghostty.enable = cfg.ghostty.enable;
subs.alacritty.enable = cfg.alacritty.enable; subs.alacritty.enable = cfg.alacritty.enable;
home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ];
home.file = { home.file = {
".config/alacritty/themes/dracula.toml".source = mkIf cfg.alacritty.enable ../config/dracula.toml; ".config/alacritty/themes/dracula.toml".source = mkIf cfg.alacritty.enable ../config/dracula.toml;
".config/ghostty/themes/ghostty-dracula".source = mkIf cfg.ghostty.enable ../config/ghostty-dracula; ".config/ghostty/themes/ghostty-dracula".source = mkIf cfg.ghostty.enable ../config/ghostty-dracula;