3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #91068 from flokli/nixos-systemd-unit-path-types

nixos/systemd: allow str in systemd.services.<name>.path
This commit is contained in:
Florian Klink 2020-06-19 00:25:32 +02:00 committed by GitHub
commit 757ba1931f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -233,7 +233,7 @@ in rec {
path = mkOption {
default = [];
type = with types; listOf package;
type = with types; listOf (oneOf [ package str ]);
apply = ps: "${makeBinPath ps}:${makeSearchPathOutput "bin" "sbin" ps}";
description = ''
Packages added to the service's <envar>PATH</envar>