From fcb1f200ede130355b84d142e7a4e754be55cf36 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 1 Jun 2025 01:39:34 +0800 Subject: [PATCH] chore: remove duplicated config for foot terminal --- home/base/gui/terminal/foot.nix | 10 ++++++ .../gui/hyprland/values/wayland-apps.nix | 31 ------------------- 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/home/base/gui/terminal/foot.nix b/home/base/gui/terminal/foot.nix index 6d47462c..22726e97 100644 --- a/home/base/gui/terminal/foot.nix +++ b/home/base/gui/terminal/foot.nix @@ -2,6 +2,16 @@ programs.foot = { # foot is designed only for Linux enable = pkgs.stdenv.isLinux; + + # foot can also be run in a server mode. In this mode, one process hosts multiple windows. + # All Wayland communication, VT parsing and rendering is done in the server process. + # New windows are opened by running footclient, which remains running until the terminal window is closed. + # + # Advantages to run foot in server mode including reduced memory footprint and startup time. + # The downside is a performance penalty. If one window is very busy with, for example, producing output, + # then other windows will suffer. Also, should the server process crash, all windows will be gone. + server.enable = true; + # https://man.archlinux.org/man/foot.ini.5 settings = { main = { diff --git a/home/linux/gui/hyprland/values/wayland-apps.nix b/home/linux/gui/hyprland/values/wayland-apps.nix index 409c6079..74fd97c0 100644 --- a/home/linux/gui/hyprland/values/wayland-apps.nix +++ b/home/linux/gui/hyprland/values/wayland-apps.nix @@ -3,24 +3,6 @@ nur-ryan4yin, ... }: { - # refer to https://codeberg.org/dnkl/foot/src/branch/master/foot.ini - xdg.configFile."foot/foot.ini".text = - '' - [main] - dpi-aware=yes - font=JetBrainsMono Nerd Font:size=13 - shell=${pkgs.bash}/bin/bash --login -c 'nu --login --interactive' - term=foot - initial-window-size-pixels=3840x2160 - initial-window-mode=windowed - pad=0x0 # optionally append 'center' - resize-delay-ms=10 - - [mouse] - hide-when-typing=yes - '' - + (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-foot}/catppuccin-mocha.conf"); - home.packages = with pkgs; [ # firefox-wayland nixpaks.firefox @@ -28,19 +10,6 @@ ]; programs = { - # a wayland only terminal emulator - foot = { - enable = true; - # foot can also be run in a server mode. In this mode, one process hosts multiple windows. - # All Wayland communication, VT parsing and rendering is done in the server process. - # New windows are opened by running footclient, which remains running until the terminal window is closed. - # - # Advantages to run foot in server mode including reduced memory footprint and startup time. - # The downside is a performance penalty. If one window is very busy with, for example, producing output, - # then other windows will suffer. Also, should the server process crash, all windows will be gone. - server.enable = true; - }; - # source code: https://github.com/nix-community/home-manager/blob/master/modules/programs/chromium.nix google-chrome = { enable = true;