mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-11 13:46:07 +02:00
27 lines
642 B
Nix
27 lines
642 B
Nix
|
{ config, lib, pkgs, options, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.modules.desktop.services.waybar;
|
||
|
in {
|
||
|
options.modules.desktop.services.waybar = {
|
||
|
enable = mkOption {
|
||
|
type = types.bool;
|
||
|
default = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
home._.programs.waybar = with pkgs; {
|
||
|
enable = true;
|
||
|
settings = [{
|
||
|
height = 10;
|
||
|
modules-left = [ "sway/workspaces" "sway/window" ];
|
||
|
modules-center = [ "clock" ];
|
||
|
modules-right = [ "tray" "cpu" "memory" "battery#bat0" ];
|
||
|
}];
|
||
|
style = builtins.readFile "${config.home.configFile.waybar.source}/style.css";
|
||
|
};
|
||
|
};
|
||
|
}
|