style(flake)!: manually import lib
flake module
- Also make `lib` an `internal` option - Unify let blocks and move them under `imports` (makes it clear where `config.lib` comes from) - Fix a minor typo
This commit is contained in:
parent
1baef9b78c
commit
31f9e7dbef
9 changed files with 96 additions and 82 deletions
|
@ -5,9 +5,9 @@ let
|
|||
and
|
||||
hasFiles
|
||||
hasDirectories
|
||||
configuration-type-to-outputs-modules;
|
||||
in
|
||||
let
|
||||
configuration-type-to-outputs-modules
|
||||
;
|
||||
|
||||
# `pkgs` with flake's overlays
|
||||
# NOTE: done here to avoid infinite recursion
|
||||
pkgs' = system:
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
{ lib, config, self, inputs, withSystem, ... }:
|
||||
|
||||
let
|
||||
inherit (config.lib)
|
||||
and
|
||||
hasFiles
|
||||
hasDirectories
|
||||
recurseDir
|
||||
kebabToCamel
|
||||
configuration-type-to-outputs-modules;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../lib
|
||||
./default-generators.nix
|
||||
];
|
||||
|
||||
options = let
|
||||
inherit (lib) types;
|
||||
inherit (lib)
|
||||
types
|
||||
;
|
||||
inherit (config.lib)
|
||||
recurseDir
|
||||
kebabToCamel
|
||||
;
|
||||
in {
|
||||
auto.configurations = lib.mkOption {
|
||||
description = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue