Fix Environmentvariables in user units
This commit is contained in:
parent
13804d5bd7
commit
54090163bd
|
@ -1,9 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
systemd.user = {
|
||||
services.fetch-banking = {
|
||||
Unit.Description = "Fetch banking";
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils pkgs.git]}";
|
||||
ExecStart = toString (
|
||||
pkgs.writeShellScript "fetch-banking" ''
|
||||
cd ~/git/buchhaltung
|
||||
|
|
|
@ -33,6 +33,7 @@ in {
|
|||
mail2rss = {
|
||||
Unit.Description = "Mail to rss exporter";
|
||||
Service = {
|
||||
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils pkgs.pass]}";
|
||||
ExecStart = "${mail2rss}/bin/mail2rss";
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue