simplified namespace cause I dont wanna type that much and introduce colored man pages
This commit is contained in:
parent
3e3aa25d8a
commit
0876e79972
15 changed files with 54 additions and 126 deletions
|
@ -1,37 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
options,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.${namespace}.graphical-interface.desktop-manager.addons.waybar;
|
||||
|
||||
inherit (lib)
|
||||
mkEnableOption
|
||||
mkOption
|
||||
mkIf
|
||||
types
|
||||
;
|
||||
in
|
||||
{
|
||||
options.${namespace}.graphical-interface.desktop-manager.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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue