Loading nixos/lib/systemd-lib.nix +13 −11 Original line number Diff line number Diff line Loading @@ -688,16 +688,18 @@ rec { }; }; stage2ServiceConfig = { stage2ServiceConfig = { config, ... }: { imports = [ serviceConfig ]; # Default path for systemd services. Should be quite minimal. config.path = mkAfter [ config.path = mkIf config.enableDefaultPath (mkAfter [ pkgs.coreutils pkgs.findutils pkgs.gnugrep pkgs.gnused systemd ]; ]); }; stage1ServiceConfig = serviceConfig; Loading nixos/lib/systemd-unit-options.nix +8 −0 Original line number Diff line number Diff line Loading @@ -379,6 +379,14 @@ rec { ''; }; enableDefaultPath = mkOption { default = true; type = types.bool; description = '' Whether to append a minimal default {env}`PATH` environment variable to the service, containing common system utilities. ''; }; serviceConfig = mkOption { default = { }; example = { Loading Loading
nixos/lib/systemd-lib.nix +13 −11 Original line number Diff line number Diff line Loading @@ -688,16 +688,18 @@ rec { }; }; stage2ServiceConfig = { stage2ServiceConfig = { config, ... }: { imports = [ serviceConfig ]; # Default path for systemd services. Should be quite minimal. config.path = mkAfter [ config.path = mkIf config.enableDefaultPath (mkAfter [ pkgs.coreutils pkgs.findutils pkgs.gnugrep pkgs.gnused systemd ]; ]); }; stage1ServiceConfig = serviceConfig; Loading
nixos/lib/systemd-unit-options.nix +8 −0 Original line number Diff line number Diff line Loading @@ -379,6 +379,14 @@ rec { ''; }; enableDefaultPath = mkOption { default = true; type = types.bool; description = '' Whether to append a minimal default {env}`PATH` environment variable to the service, containing common system utilities. ''; }; serviceConfig = mkOption { default = { }; example = { Loading