simplified namespace cause I dont wanna type that much and introduce colored man pages

This commit is contained in:
Christoph Hollizeck 2024-09-13 02:05:40 +02:00
parent 767922cdd0
commit 80a4ed8f70
15 changed files with 54 additions and 126 deletions

View file

@ -0,0 +1,37 @@
{
lib,
config,
options,
pkgs,
namespace,
...
}:
let
cfg = config.${namespace}.desktop.addons.waybar;
inherit (lib)
mkEnableOption
mkOption
mkIf
types
;
in
{
options.${namespace}.desktop.addons.waybar = {
enable = mkEnableOption "Waybar";
package = mkOption {
type = types.package;
default = pkgs.waybar;
description = "The package to use for Waybar";
};
};
config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
wyrdgard.home.file = {
".config/waybar/config".source = ./config;
".config/waybar/style.css".source = ./style.css;
};
};
}