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" + ]; + }; + }; + }; +}