dotfiles.nix/home/services/dark-mode-notify.nix

21 lines
579 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }: {
2022-10-10 21:54:15 +00:00
# dark-mode-notify configuration
launchd.agents.dark-mode-notify =
2023-08-23 00:50:29 +00:00
let logPath = "${config.xdg.stateHome}/dark-mode-notify";
in {
2022-10-10 21:54:15 +00:00
enable = true;
config = {
Label = "ke.bou.dark-mode-notify";
KeepAlive = true;
StandardErrorPath = "${logPath}/error.log";
StandardOutPath = "${logPath}/out.log";
ProgramArguments = [
"${lib.getExe pkgs.dark-mode-notify}"
"${lib.getExe pkgs.fish}"
2022-10-10 21:54:15 +00:00
"-c"
"set-background-to-env DARKMODE"
];
};
};
}