2023-01-31 09:38:11 +01:00
|
|
|
{
|
2023-02-10 07:46:37 +01:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-01-31 09:38:11 +01:00
|
|
|
home = lib.mkIf isDarwin {
|
2023-02-10 07:46:37 +01:00
|
|
|
packages = [pkgs.unstable.sketchybar];
|
2023-01-31 09:38:11 +01:00
|
|
|
};
|
|
|
|
launchd = lib.mkIf isDarwin {
|
|
|
|
agents.sketchybar = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-02-10 07:46:37 +01:00
|
|
|
ProgramArguments = ["${lib.getExe pkgs.unstable.sketchybar}"];
|
2023-01-31 09:38:11 +01:00
|
|
|
KeepAlive = true;
|
|
|
|
RunAtLoad = true;
|
|
|
|
ProcessType = "Interactive";
|
|
|
|
Nice = -20;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg.configFile = lib.mkIf isDarwin {
|
|
|
|
"sketchybar" = {
|
|
|
|
source = config.lib.file.mkOutOfStoreSymlink ./sketchybar;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|