Fix Environmentvariables in user units
This commit is contained in:
parent
13804d5bd7
commit
54090163bd
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue