pinwheel: Add enable option to foot module

This commit is contained in:
Alexander Heldt
2023-11-05 20:32:15 +01:00
parent 1aeae3081a
commit a93ae6da73
2 changed files with 24 additions and 13 deletions

View File

@@ -1,25 +1,35 @@
{ pkgs, lib, config, ... }:
let
enabled = config.mod.foot.enable;
hyprlandEnabled = config.mod.hyprland.enable;
in
{
home-manager.users.alex = {
programs.foot = {
enable = true;
options = {
mod.foot = {
enable = lib.mkEnableOption "enable foot module";
};
};
settings = {
main = {
term = "xterm-256color";
font = "DejaVuSansM Nerd Font Mono:size=14";
config = {
home-manager.users.alex = lib.mkIf enabled {
programs.foot = {
enable = true;
settings = {
main = {
term = "xterm-256color";
font = "DejaVuSansM Nerd Font Mono:size=14";
};
};
};
};
wayland.windowManager.hyprland = lib.mkIf hyprlandEnabled {
settings = {
bind = [
"$mod, RETURN, exec, ${pkgs.foot}/bin/foot"
];
wayland.windowManager.hyprland = lib.mkIf hyprlandEnabled {
settings = {
bind = [
"$mod, RETURN, exec, ${pkgs.foot}/bin/foot"
];
};
};
};
};