From 336dc00a94e39337c64decd6d0f4f6e4a4d43187 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Tue, 11 Mar 2025 16:31:03 -0400 Subject: initial commit --- modules/sources.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/sources.nix (limited to 'modules/sources.nix') diff --git a/modules/sources.nix b/modules/sources.nix new file mode 100644 index 0000000..6fb8d32 --- /dev/null +++ b/modules/sources.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: + +let + sourcesSubmodule = { + freeformType = lib.types.lazyAttrsOf lib.types.raw; + }; +in + +{ + options.sources = lib.mkOption { + type = lib.types.submodule sourcesSubmodule; + default = { }; + description = "Sources used across modules."; + example = lib.literalExpression "import ./npins"; + }; + + config = { + _module.args = { inherit (config) sources; }; + }; +} -- cgit v1.2.3