summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorseth <[email protected]>2025-01-05 23:24:04 -0500
committerGitHub <[email protected]>2025-01-06 04:24:04 +0000
commita0726ea66d1857eb2e1c9d7dfd2f10d30ac64706 (patch)
tree585d4c7706ef52fc037419958b0af86e216a5d43 /lib
parent85e702efc03b04cbb0ac5b1b2ef79c21602c8ed8 (diff)
treewide: back to flake parts (#539)
* treewide: back to flake parts * treewide: drop extra docs these are kind pointless
Diffstat (limited to 'lib')
-rw-r--r--lib/README.md5
-rw-r--r--lib/default.nix16
2 files changed, 9 insertions, 12 deletions
diff --git a/lib/README.md b/lib/README.md
deleted file mode 100644
index 97814c5..0000000
--- a/lib/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-# ./lib/
-
-## nginx.nix
-
-Small helpers to avoid boilerplate in the `services.nginx` module
diff --git a/lib/default.nix b/lib/default.nix
index 8279f8f..d7fb959 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,9 +1,11 @@
-{ lib }:
+{ lib, ... }:
-lib.makeExtensible (
- final:
+{
+ flake.lib = lib.makeExtensible (
+ final:
- lib.mapAttrs (lib.const (lib.flip import { inherit lib final; })) {
- nginx = ./nginx.nix;
- }
-)
+ lib.mapAttrs (lib.const (lib.flip import { inherit lib final; })) {
+ nginx = ./nginx.nix;
+ }
+ );
+}