Fix lib functions taken from pkgs.lib instead of lib in nixos