1
0
Fork 0

Fix Environmentvariables in user units

This commit is contained in:
Malte 2023-02-28 23:59:43 +01:00
parent 13804d5bd7
commit 54090163bd
2 changed files with 7 additions and 1 deletions

View file

@ -1,9 +1,14 @@
{pkgs, ...}: { {
pkgs,
lib,
...
}: {
systemd.user = { systemd.user = {
services.fetch-banking = { services.fetch-banking = {
Unit.Description = "Fetch banking"; Unit.Description = "Fetch banking";
Service = { Service = {
Type = "oneshot"; Type = "oneshot";
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils pkgs.git]}";
ExecStart = toString ( ExecStart = toString (
pkgs.writeShellScript "fetch-banking" '' pkgs.writeShellScript "fetch-banking" ''
cd ~/git/buchhaltung cd ~/git/buchhaltung

View file

@ -33,6 +33,7 @@ in {
mail2rss = { mail2rss = {
Unit.Description = "Mail to rss exporter"; Unit.Description = "Mail to rss exporter";
Service = { Service = {
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils pkgs.pass]}";
ExecStart = "${mail2rss}/bin/mail2rss"; ExecStart = "${mail2rss}/bin/mail2rss";
Type = "oneshot"; Type = "oneshot";
}; };