fixing stuff

feature/hass
Ingolf Wagner 2021-03-16 22:15:02 +01:00
parent 671ab04997
commit 957c3fc2bc
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,7 @@
{ pkgs, lib, ... }: { { pkgs, lib, ... }: {
desktopFile = bin: desktopFile = bin:
{ comment ? "No Comment", longName ? "Script", command ? "${bin}/bin/${bin.name}", ... }: { comment ? "No Comment", longName ? "Script"
, command ? "${bin}/bin/${bin.name}", ... }:
pkgs.writeTextFile { pkgs.writeTextFile {
name = "${bin.name}.desktop"; name = "${bin.name}.desktop";
destination = "/share/applications/${bin.name}.desktop"; destination = "/share/applications/${bin.name}.desktop";

View File

@ -380,11 +380,8 @@ in {
${mailSend}/bin/mail-send ${mailSend}/bin/mail-send
${mailSync}/bin/mail-sync ${mailSync}/bin/mail-sync
''; '';
mailDelete = let mailDelete = let notmuch = "${pkgs.notmuch}/bin/notmuch";
notmuch = "${pkgs.notmuch}/bin/notmuch" in pkgs.writers.writeBashBin "mail-delete" ''
;
in
pkgs.writers.writeBashBin "mail-delete" ''
set -efu set -efu
set -o pipefail set -o pipefail