Fix environment not being loaded into systemd user session anymore

This commit is contained in:
Charlotte Van Petegem 2022-07-09 18:11:21 +02:00
parent 57f44d1f03
commit e58a90f04c
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 2 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
let
passwordScript = pkgs.writeShellScript "get_mail_password" ''${pkgs.pass}/bin/pass show "$@" | head -n1 | tr -d "\n"'';
passwordScript = pkgs.writeShellScript "get_mail_password" ''${pkgs.pass}/bin/pass show "$@" | ${pkgs.coreutils}/bin/head -n1 | ${pkgs.coreutils}/bin/tr -d "\n"'';
notifyScript = name: pkgs.writeShellScript "notify_${name}_mail" ''
unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l)