1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-27 23:35:05 +02:00
git.oat.zone--dark-firepit-.../modules/desktop/services/waybar.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

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";
};
};
}