dunst: fix date command not being found

This commit is contained in:
LavaDesu 2021-11-17 18:51:04 +07:00
parent 76b6f7cfb8
commit 910a1c5538
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
let
historyScript = pkgs.writeShellScript "dunst_history.sh" ''
echo "$(date +%s):$DUNST_TIMESTAMP:$DUNST_APP_NAME:$DUNST_URGENCY:$DUNST_SUMMARY:$DUNST_BODY" >> ${config.xdg.dataHome}/dunst/history
echo "$(${pkgs.coreutils}/bin/date +%s):$DUNST_TIMESTAMP:$DUNST_APP_NAME:$DUNST_URGENCY:$DUNST_SUMMARY:$DUNST_BODY" >> ${config.xdg.dataHome}/dunst/history
'';
in {
systemd.user.tmpfiles.rules = [ "d ${config.xdg.dataHome}/dunst - - - -" ];