From 84c5cbd22a2475ab21afb2e4a8b97a6645352ab9 Mon Sep 17 00:00:00 2001
From: Emile <git@emile.space>
Date: Fri, 2 Aug 2024 21:10:03 +0200
Subject: ports as a module

---
 nix/modules/default.nix       |  7 +++++++
 nix/modules/ports/README.md   |  4 ++++
 nix/modules/ports/default.nix | 10 ++++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 nix/modules/default.nix
 create mode 100644 nix/modules/ports/README.md
 create mode 100644 nix/modules/ports/default.nix

(limited to 'nix/modules')

diff --git a/nix/modules/default.nix b/nix/modules/default.nix
new file mode 100644
index 0000000..767e466
--- /dev/null
+++ b/nix/modules/default.nix
@@ -0,0 +1,7 @@
+{ ... }:
+
+{
+  imports = [
+    ./ports
+  ];
+}
diff --git a/nix/modules/ports/README.md b/nix/modules/ports/README.md
new file mode 100644
index 0000000..c0aa718
--- /dev/null
+++ b/nix/modules/ports/README.md
@@ -0,0 +1,4 @@
+# ports
+
+A super simple nix module which doesn't do anything and is only there so you
+can add attributes to the attribute set that can be referenced elsewhere.
diff --git a/nix/modules/ports/default.nix b/nix/modules/ports/default.nix
new file mode 100644
index 0000000..15507e2
--- /dev/null
+++ b/nix/modules/ports/default.nix
@@ -0,0 +1,10 @@
+{ lib, ... }: 
+
+with lib; {
+  options = mkOption {
+	  type = types.attrs;
+	  default = false;
+	  example = true;
+	  description = "Whether to enable this cool module.";
+  };
+}
-- 
cgit 1.4.1