diff --git a/home-manager/services/roborev/default.nix b/home-manager/services/roborev/default.nix index 0c81e0f5e..c0a36de7d 100644 --- a/home-manager/services/roborev/default.nix +++ b/home-manager/services/roborev/default.nix @@ -32,7 +32,7 @@ lib.mkIf enabled { EnvironmentVariables = { HOME = homeDir; ROBOREV_DATA_DIR = dataDir; - PATH = "${homeDir}/.local/bin:/etc/profiles/per-user/${config.home.username}/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"; + PATH = "${homeDir}/.local/bin:${homeDir}/.bun/bin:/etc/profiles/per-user/${config.home.username}/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"; }; StandardOutPath = "/tmp/roborev.log"; StandardErrorPath = "/tmp/roborev.error.log"; @@ -53,7 +53,7 @@ lib.mkIf enabled { Environment = [ "HOME=${homeDir}" "ROBOREV_DATA_DIR=${dataDir}" - "PATH=${homeDir}/.local/bin:/etc/profiles/per-user/${config.home.username}/bin:${homeDir}/.nix-profile/bin:/usr/local/bin:/usr/bin:/bin" + "PATH=${homeDir}/.local/bin:${homeDir}/.bun/bin:/etc/profiles/per-user/${config.home.username}/bin:${homeDir}/.nix-profile/bin:/usr/local/bin:/usr/bin:/bin" ]; }; Install = { diff --git a/spec/activate_roborev_spec.sh b/spec/activate_roborev_spec.sh index e65a2021e..0e4fea3fb 100644 --- a/spec/activate_roborev_spec.sh +++ b/spec/activate_roborev_spec.sh @@ -73,6 +73,16 @@ When run grep -F '/etc/profiles/per-user/${config.home.username}/bin' "$PWD/home The output should include '/etc/profiles/per-user/${config.home.username}/bin' End +It 'includes Bun-installed agents in the launchd PATH' +When run grep -F 'PATH = "${homeDir}/.local/bin:${homeDir}/.bun/bin:' "$PWD/home-manager/services/roborev/default.nix" +The output should include '${homeDir}/.bun/bin' +End + +It 'includes Bun-installed agents in the systemd PATH' +When run grep -F '"PATH=${homeDir}/.local/bin:${homeDir}/.bun/bin:' "$PWD/home-manager/services/roborev/default.nix" +The output should include '${homeDir}/.bun/bin' +End + It 'binds the daemon to the local host' When run grep -F '127.0.0.1:7373' "$PWD/home-manager/services/roborev/default.nix" The output should include '127.0.0.1:7373'