this post was submitted on 02 Oct 2023
1 points (100.0% liked)
nixos
1262 readers
6 users here now
All about NixOS - https://nixos.org/
founded 4 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Probably
nixpkgs.lib.escapeSystemdPath
. If you are talking about a NixOS config you can requestlib
as an argument.(I haven't actually checked, but this is where most lib functions are)
It's not on
lib
, it's onutils
, 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!