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, ... }: { lib, config, ... }:
let let
inherit (lib) concatStringsSep singleton; inherit (builtins) concatStringsSep;
inherit (lib.lists) singleton;
in in
{ {
text.cheatsheet = concatStringsSep "\n" [ text.cheatsheet = concatStringsSep "\n" [

View file

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

View file

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

View file

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