refactor(lib): remove references to top level lib
This commit is contained in:
parent
9403daff02
commit
0c2b6b57d9
4 changed files with 5 additions and 4 deletions
|
@ -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" [
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue