diff --git a/user/subs/foot.nix b/user/subs/foot.nix new file mode 100644 index 0000000..4203f4e --- /dev/null +++ b/user/subs/foot.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.subs.foot; +in +{ + options = { + subs.foot.enable = lib.mkOption { + default = false; + type = lib.types.bool; + }; + }; + + config = lib.mkIf cfg.enable { + programs.foot = { + enable = true; + server.enable = true; + settings = { + main = { + include = "${pkgs.foot}/share/foot/themes/dracula"; + term = "xterm-256color"; + font = "Iosevka Nerd Font:size=15"; + dpi-aware = "yes"; + }; + bell = { + system = "no"; + }; + scrollback = { + lines = 10000; + }; + }; + }; + }; +} + diff --git a/user/terminals.nix b/user/terminals.nix index c0c2c4b..a677bc8 100644 --- a/user/terminals.nix +++ b/user/terminals.nix @@ -8,6 +8,7 @@ in imports = [ ./subs/ghostty.nix ./subs/alacritty.nix + ./subs/foot.nix ]; options.terminals = { @@ -23,11 +24,16 @@ in default = true; type = types.bool; }; + foot.enable = mkOption { + default = false; + type = types.bool; + }; }; config = { subs.ghostty.enable = cfg.ghostty.enable; subs.alacritty.enable = cfg.alacritty.enable; + subs.foot.enable = cfg.foot.enable; home.packages = mkIf cfg.xfceTerminal.enable [ pkgs.xfce.xfce4-terminal ]; diff --git a/user/utils.nix b/user/utils.nix index 4e5e0a0..c13121e 100644 --- a/user/utils.nix +++ b/user/utils.nix @@ -19,6 +19,10 @@ in default = true; type = lib.types.bool; }; + mako.enable = lib.mkOption { + default = false; + type = lib.types.bool; + }; }; config = { @@ -37,5 +41,26 @@ in }; }; }; + + services.mako = { + enable = cfg.mako.enable; + settings = { + sort = "-time"; + layer = "overlay"; + background-color = "#1E1E1E"; + border-color = "#838383"; + border-size = 1; + border-radius = 5; + max-icon-size = 64; + padding = 10; + font = "Inter 10"; + default-timeout = 5000; + "urgency=high" = { + background-color = "#EF5350"; + border-color = "#22DA6E"; + default-timeout = 0; + }; + }; + }; }; }