Probably nixpkgs.lib.escapeSystemdPath
. If you are talking about a NixOS config you can request lib
as an argument.
(I haven't actually checked, but this is where most lib functions are)
All about NixOS - https://nixos.org/
Probably nixpkgs.lib.escapeSystemdPath
. If you are talking about a NixOS config you can request lib
as an argument.
(I haven't actually checked, but this is where most lib functions are)
It's not on lib
, it's on utils
, which is not necessarily exposed all that well. You should be able to just get it passed into your module config, eg.
{config, pkgs, lib, utils, ...}: { # do your thing }
That's it! I love you, thanks!