From d158328ae4378fbaf149cbb113e98d4fb1e1e7dd Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 26 Aug 2023 16:53:53 +0200 Subject: [PATCH] pinwheel: Extract `foot` module --- hosts/pinwheel/configuration.nix | 1 + hosts/pinwheel/home.nix | 12 ------------ hosts/pinwheel/modules/foot/default.nix | 23 +++++++++++++++++++++++ 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 hosts/pinwheel/modules/foot/default.nix diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index ae4cc22..4798b99 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -15,6 +15,7 @@ ./modules/git ./modules/zsh ./modules/vim + ./modules/foot ./modules/syncthing ./modules/firefox ./modules/calibre diff --git a/hosts/pinwheel/home.nix b/hosts/pinwheel/home.nix index 05788d0..389fcf7 100644 --- a/hosts/pinwheel/home.nix +++ b/hosts/pinwheel/home.nix @@ -12,17 +12,6 @@ bemenu ]; - programs.foot = { - enable = true; - - settings = { - main = { - term = "xterm-256color"; - font = "DejaVuSansM Nerd Font Mono:size=14"; - }; - }; - }; - programs.tmux = { enable = true; @@ -151,7 +140,6 @@ "$mod, x, exec, ${pkgs.swaylock}/bin/swaylock" "$mod SHIFT, x, exec, systemctl suspend" - "$mod, RETURN, exec, ${pkgs.foot}/bin/foot" "$mod, SPACE, exec, bemenu-run --fn 'DejaVuSansM Nerd Font Mono 14'" "$mod, ESCAPE, killactive" diff --git a/hosts/pinwheel/modules/foot/default.nix b/hosts/pinwheel/modules/foot/default.nix new file mode 100644 index 0000000..9b95407 --- /dev/null +++ b/hosts/pinwheel/modules/foot/default.nix @@ -0,0 +1,23 @@ +{ home-manager, pkgs, ... }: +{ + home-manager.users.alex = { + programs.foot = { + enable = true; + + settings = { + main = { + term = "xterm-256color"; + font = "DejaVuSansM Nerd Font Mono:size=14"; + }; + }; + }; + + wayland.windowManager.hyprland = { + settings = { + bind = [ + "$mod, RETURN, exec, ${pkgs.foot}/bin/foot" + ]; + }; + }; + }; +}