desktop building?
This commit is contained in:
32
modules/home/programs/mako/default.nix
Executable file
32
modules/home/programs/mako/default.nix
Executable file
@@ -0,0 +1,32 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.mjallen.programs.mako;
|
||||
nord = import ../../desktop/theme/nord.nix;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
config = mkIf cfg.enable {
|
||||
services.mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font = cfg.fontName;
|
||||
icons = true;
|
||||
ignore-timeout = true;
|
||||
sort = "-time";
|
||||
width = 500;
|
||||
height = 110;
|
||||
layer = "overlay";
|
||||
border-radius = 15;
|
||||
border-size = 1;
|
||||
max-icon-size = 64;
|
||||
default-timeout = 5000;
|
||||
|
||||
background-color = nord.polarNight.nord0;
|
||||
text-color = nord.snowStorm.nord6;
|
||||
border-color = nord.frost.nord10;
|
||||
progress-color = "over ${nord.frost.nord8}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
modules/home/programs/mako/options.nix
Normal file
12
modules/home/programs/mako/options.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.mjallen.programs.mako = {
|
||||
enable = mkEnableOption "enable mako";
|
||||
|
||||
fontName = mkOption {
|
||||
type = types.str;
|
||||
default = "DejaVu Sans";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user