Added mako modue

This commit is contained in:
Jan Bulthuis 2024-07-19 00:36:02 +02:00
parent 7f318bc1b7
commit 36c9c7a90d
6 changed files with 47 additions and 14 deletions

View File

@ -9,6 +9,7 @@
./firefox/default.nix ./firefox/default.nix
./fontconfig/default.nix ./fontconfig/default.nix
./foot/default.nix ./foot/default.nix
./mako/default.nix
./obsidian/default.nix ./obsidian/default.nix
./shell/bash.nix ./shell/bash.nix
./shell/fish.nix ./shell/fish.nix

View File

@ -1,11 +1,12 @@
{config, lib, pkgs, ... }: {config, lib, pkgs, ... }:
with lib;
let let
cfg = config.modules.feishin; cfg = config.modules.feishin;
in { in {
options.modules.feishin.enable = lib.mkEnableOption "feishin"; options.modules.feishin.enable = mkEnableOption "feishin";
config = lib.mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
feishin feishin
]; ];

View File

@ -0,0 +1,25 @@
{config, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.mako;
theme = config.theming;
colors = theme.colors;
in {
options.modules.mako.enable = mkEnableOption "mako";
config = mkIf cfg.enable {
services.mako = {
enable = true;
anchor = "top-right";
defaultTimeout = 5000;
backgroundColor = "#${colors.bg}ff";
textColor = "#${colors.fg}ff";
borderColor = "#${colors.fg}ff";
progressColor = "#${colors.accent}ff";
borderRadius = 0;
borderSize = theme.layout.borderSize;
font = "${theme.fonts.monospace.name} ${toString theme.fonts.monospace.recommendedSize}";
};
};
}

View File

@ -119,6 +119,10 @@ in {
type = types.str; type = types.str;
default = colors.base05; default = colors.base05;
}; };
accent = mkOption {
type = types.str;
default = colors.base09;
};
focused = mkOption { focused = mkOption {
type = types.str; type = types.str;
default = cfg.colors.fg; default = cfg.colors.fg;

View File

@ -24,6 +24,8 @@
# Programs # Programs
feishin.enable = true; feishin.enable = true;
firefox.enable = true; firefox.enable = true;
foot.enable = true;
mako.enable = true;
vscode.enable = true; vscode.enable = true;
zathura.enable = true; zathura.enable = true;
fish.enable = true; fish.enable = true;

View File

@ -529,18 +529,18 @@ in {
# }; # };
# Mako notifications setup # Mako notifications setup
services.mako = { # services.mako = {
enable = true; # enable = true;
anchor = "top-right"; # anchor = "top-right";
defaultTimeout = 5000; # defaultTimeout = 5000;
backgroundColor = "#${colors.base00}ff"; # backgroundColor = "#${colors.base00}ff";
textColor = "#${colors.base05}ff"; # textColor = "#${colors.base05}ff";
borderColor = "#${colors.base05}ff"; # borderColor = "#${colors.base05}ff";
progressColor = "#${colors.base09}ff"; # progressColor = "#${colors.base09}ff";
borderRadius = 0; # borderRadius = 0;
borderSize = borderSize; # borderSize = borderSize;
font = "${fonts.monospace.name} ${toString fonts.sizes.terminal}"; # font = "${fonts.monospace.name} ${toString fonts.sizes.terminal}";
}; # };
# Waybar setup # Waybar setup
programs.waybar = { programs.waybar = {