Waybar config
This commit is contained in:
parent
3c7a01f264
commit
e8d8704b70
6 changed files with 232 additions and 59 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
|
|
@ -6,18 +7,32 @@
|
|||
}:
|
||||
|
||||
let
|
||||
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
programs = {
|
||||
options = {
|
||||
waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
enable = mkEnableOption "enables waybar";
|
||||
configPath = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = ./waybar.jsonc;
|
||||
description = "The path to the waybar config";
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile."waybar/config.jsonc".source = ./waybar.jsonc;
|
||||
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
||||
config = mkIf config.waybar.enable {
|
||||
programs = {
|
||||
waybar = {
|
||||
enable = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile."waybar/config.jsonc".source = config.waybar.configPath;
|
||||
xdg.configFile."waybar/style.css".source = ./waybar.css;
|
||||
};
|
||||
# catppuccin.waybar = {
|
||||
# enable = true;
|
||||
# flavor = "latte";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue