Added mako modue
This commit is contained in:
1 parent
7f318bc1b7
commit
36c9c7a90d
6 files changed
+47
-14
No files matched your search
@@ -9,6 +9,7 @@
|
||||
./firefox/default.nix
|
||||
./fontconfig/default.nix
|
||||
./foot/default.nix
|
||||
./mako/default.nix
|
||||
./obsidian/default.nix
|
||||
./shell/bash.nix
|
||||
./shell/fish.nix
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.feishin;
|
||||
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; [
|
||||
feishin
|
||||
];
|
||||
|
||||
@@ -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}";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -119,6 +119,10 @@ in {
|
||||
type = types.str;
|
||||
default = colors.base05;
|
||||
};
|
||||
accent = mkOption {
|
||||
type = types.str;
|
||||
default = colors.base09;
|
||||
};
|
||||
focused = mkOption {
|
||||
type = types.str;
|
||||
default = cfg.colors.fg;
|
||||
|
||||
Reference in new issue
Block a user