44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
sketchybar-app-font
|
|
# menubar-cli # (needs to come from an overlay, check https://github.com/Kcraft059/Nix-Config/blob/master/overlays/menubar-cli.nix for implementation - bin by @FelixKratz)
|
|
];
|
|
|
|
programs.sketchybar = {
|
|
enable = true;
|
|
service = rec {
|
|
enable = true;
|
|
errorLogFile = "/tmp/sketchybar.log";
|
|
outLogFile = errorLogFile;
|
|
};
|
|
configType = "bash";
|
|
config = {
|
|
source = "${inputs.sketchybar-config}"; # flake input path
|
|
recursive = true; # copy entire tree
|
|
};
|
|
extraPackages = with pkgs; [
|
|
# menubar-cli # see above
|
|
imagemagick
|
|
macmon
|
|
];
|
|
};
|
|
|
|
# Example of providing dynamic icon map or other generated files
|
|
xdg.configFile = {
|
|
"sketchybar/dyn-icon_map.sh".source = "${pkgs.sketchybar-app-font}/bin/icon_map.sh";
|
|
|
|
# Optional: inline user overrides without forking
|
|
# "sketchybar/config.sh".text = ''
|
|
# NOTCH_WIDTH=200
|
|
# MUSIC_INFO_WIDTH=100
|
|
# '';
|
|
};
|
|
|
|
}
|