23 lines
559 B
Nix
23 lines
559 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
moduleName = "hm-waybar";
|
|
in
|
|
{
|
|
# Installs + enables Waybar
|
|
programs.waybar = {
|
|
enable = true;
|
|
|
|
# Explicit install (optional, but you asked for it)
|
|
package = pkgs.waybar;
|
|
};
|
|
|
|
# Your config file is named waybar.conf in your repo,
|
|
# but Waybar expects it as ~/.config/waybar/config
|
|
xdg.configFile."waybar/config".source = .conf/waybar/waybar.conf;
|
|
|
|
# CSS styling
|
|
xdg.configFile."waybar/style.css".source = ./waybar/style.css;
|
|
home.file.".nixlog/loaded.${moduleName}-module-loaded".text = "loaded\n";
|
|
}
|