refactor(lib): remove references to top level lib

This commit is contained in:
Mohammad Rafiq 2025-07-07 14:21:42 +08:00
parent 9403daff02
commit 0c2b6b57d9
No known key found for this signature in database
4 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
{ lib, config, ... }:
let
inherit (lib) concatStringsSep singleton;
inherit (builtins) concatStringsSep;
inherit (lib.lists) singleton;
in
{
text.cheatsheet = concatStringsSep "\n" [

View file

@ -7,7 +7,7 @@
}:
let
inherit (builtins) map head;
inherit (lib) concatStringsSep;
inherit (lib.lists) concatStringsSep;
mkListEntry = x: "- [" + x.path_ + "](" + x.path_ + ")";
listOfGeneratedFiles = withSystem (head config.systems) (psArgs: psArgs.config.files.files);
in

View file

@ -1,6 +1,6 @@
{ config, lib, ... }:
let
inherit (lib) mkMerge mkIf mkAfter;
inherit (lib.modules) mkMerge mkIf mkAfter;
in
{
flake.modules.nixos.default =

View file

@ -5,7 +5,7 @@
...
}:
let
inherit (lib) mkOption;
inherit (lib.options) mkOption;
inherit (config.flake.lib.options) mkStrOption;
inherit (lib.types)
listOf