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 = {
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

View file

@ -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";
};