From 98a882dd4c43f2f163742b15b7aa050f1ca47b9d Mon Sep 17 00:00:00 2001 From: datsudo <76833632+datsudo@users.noreply.github.com> Date: Mon, 2 Jun 2025 21:37:47 +0800 Subject: [PATCH] add xfce4-terminal --- user/home.nix | 1 + user/terminals.nix | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/user/home.nix b/user/home.nix index 9a14637..ae61702 100644 --- a/user/home.nix +++ b/user/home.nix @@ -81,6 +81,7 @@ terminals.ghostty.enable = true; terminals.alacritty.enable = true; + terminals.xfceTerminal.enable = true; shells.fish.enable = false; diff --git a/user/terminals.nix b/user/terminals.nix index 4d8bd29..acc2e0c 100644 --- a/user/terminals.nix +++ b/user/terminals.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let inherit (lib) mkIf mkOption types; @@ -19,12 +19,18 @@ in default = false; type = types.bool; }; + xfceTerminal.enable = mkOption { + default = false; + type = types.bool; + }; }; config = { subs.ghostty.enable = cfg.ghostty.enable; subs.alacritty.enable = cfg.alacritty.enable; + home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ]; + home.file = { ".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;