Fix sh not being on PATH

This commit is contained in:
Tim Van Baak 2025-02-20 08:14:36 -08:00
parent 86637a363e
commit eefb2e27a3
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { pkgs, lib, config, ... }:
{ {
system.stateVersion = "25.05"; system.stateVersion = "25.05";
@ -71,7 +71,7 @@
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
}; };
path = [ pkgs.intake ]; path = config.environment.systemPackages ++ [ pkgs.intake ];
environment.INTAKE_DATA_DIR = "/home/${userName}/.local/share/intake"; environment.INTAKE_DATA_DIR = "/home/${userName}/.local/share/intake";
wantedBy = [ "intake-${userName}.service" ]; wantedBy = [ "intake-${userName}.service" ];
before = [ "intake-${userName}.service" ]; before = [ "intake-${userName}.service" ];

View File

@ -108,7 +108,7 @@ in
"intake-${userName}" = { "intake-${userName}" = {
description = "Intake service for user ${userName}"; description = "Intake service for user ${userName}";
script = "${runScript userName}"; script = "${runScript userName}";
path = intakeCfg.extraPackages ++ userCfg.extraPackages; path = config.environment.systemPackages ++ intakeCfg.extraPackages ++ userCfg.extraPackages;
environment = { environment = {
INTAKE_DATA_DIR = "/home/${userName}/.local/share/intake"; INTAKE_DATA_DIR = "/home/${userName}/.local/share/intake";
}; };