aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/terminal
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-26 23:53:50 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-27 00:04:04 +0530
commitb20945970ba46999c8c4f234ea0456ca368e179a (patch)
tree63fe1a428af8dfc6b57371bfc9b7795d491422c4 /modules/desktop/terminal
parent86aaaabfd153a1710b6773f17925d2e5191bf522 (diff)
downloadhome-manager-config-b20945970ba46999c8c4f234ea0456ca368e179a.tar.gz
home-manager-config-b20945970ba46999c8c4f234ea0456ca368e179a.zip
Using kitty terminal instead of alacritty.
Setup xdg-desktop-portal.
Diffstat (limited to 'modules/desktop/terminal')
-rw-r--r--modules/desktop/terminal/alacritty/default.nix10
-rw-r--r--modules/desktop/terminal/default.nix1
-rw-r--r--modules/desktop/terminal/kitty/default.nix48
3 files changed, 54 insertions, 5 deletions
diff --git a/modules/desktop/terminal/alacritty/default.nix b/modules/desktop/terminal/alacritty/default.nix
index a1f521a..575fe4e 100644
--- a/modules/desktop/terminal/alacritty/default.nix
+++ b/modules/desktop/terminal/alacritty/default.nix
@@ -7,7 +7,7 @@
config = lib.mkIf config.desktop.terminal.alacritty.enable {
programs.alacritty.enable = true;
- desktop.terminal.default = "${pkgs.alacritty}/bin/alacritty";
+ desktop.terminal.default = lib.mkDefault "${pkgs.alacritty}/bin/alacritty";
programs.alacritty.settings = {
window = {
@@ -21,17 +21,17 @@
font = {
normal = {
- family = "Fira Code Nerd Font";
+ family = config.fonts.normal;
style = "Retina";
};
bold = {
- family = "Fira Code Nerd Font";
+ family = config.fonts.bold;
style = "Bold";
};
italic = {
- family = "Fira Code Nerd Font";
+ family = config.fonts.italic;
};
- size = 16.0;
+ size = config.fonts.size;
};
colors = with config.scheme; {
diff --git a/modules/desktop/terminal/default.nix b/modules/desktop/terminal/default.nix
index 60b1e59..ac84471 100644
--- a/modules/desktop/terminal/default.nix
+++ b/modules/desktop/terminal/default.nix
@@ -3,6 +3,7 @@
{
imports = [
./alacritty
+ ./kitty
];
options.desktop.terminal = {
diff --git a/modules/desktop/terminal/kitty/default.nix b/modules/desktop/terminal/kitty/default.nix
new file mode 100644
index 0000000..943a730
--- /dev/null
+++ b/modules/desktop/terminal/kitty/default.nix
@@ -0,0 +1,48 @@
+{ pkgs, config, lib, ... }:
+
+{
+ options.desktop.terminal.kitty = {
+ enable = lib.mkEnableOption "Enables kitty.";
+ };
+
+ config = lib.mkIf config.desktop.terminal.kitty.enable {
+ assertions = [
+ {
+ assertion = config.desktop.xdg-portal.enable;
+ message ="Module desktop.terminal.kitty requires desktop.xdg-portal module to be enabled.";
+ }
+ ];
+ programs.kitty.enable = true;
+ desktop.terminal.default = lib.mkDefault "${pkgs.kitty}/bin/kitty";
+
+ programs.kitty.settings = with config.scheme.withHashtag; {
+ window_padding_width = config.desktop.window-manager.gap;
+ font_size = config.fonts.size;
+ font_family = config.fonts.normal;
+ filter_notification = "all";
+ update_check_interval = 0;
+ scrollback_indicator_opacity = "0.5";
+
+ dynamic_background_opacity = false;
+ allow_remote_control = false;
+ enable_audio_bell = false;
+
+ background = base00;
+ foreground = base05;
+
+ color0 = base00; # Black
+ color1 = base08; # Red
+ color2 = base0B; # Green
+ color3 = base0A; # Yellow
+ color4 = base0D; # Blue
+ color5 = base0E; # Magenta
+ color6 = base0C; # Cyan
+ color7 = base05; # White
+
+ selection_background = base03;
+ selection_foreground = base00;
+
+ shell = config.shell.default;
+ };
+ };
+}