From 3ecd08fb88bea3b4adf4dc4cf25a1f3bd0b461ee Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 8 Jul 2025 18:57:20 +0200 Subject: [PATCH] System: Update system module template --- system/modules/0_template/default.nix | 14 ++++++++++++++ system/modules/0_template/options.nix | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 system/modules/0_template/default.nix create mode 100644 system/modules/0_template/options.nix diff --git a/system/modules/0_template/default.nix b/system/modules/0_template/default.nix new file mode 100644 index 00000000..2029fece --- /dev/null +++ b/system/modules/0_template/default.nix @@ -0,0 +1,14 @@ +{ + config, + lib, + mylib, + ... +}: let + inherit (config.modules) TEMPLATE; +in { + options.modules.TEMPLATE = import ./options.nix {inherit lib mylib;}; + + config = + lib.mkIf TEMPLATE.enable { + }; +} diff --git a/system/modules/0_template/options.nix b/system/modules/0_template/options.nix new file mode 100644 index 00000000..ff2461b2 --- /dev/null +++ b/system/modules/0_template/options.nix @@ -0,0 +1,7 @@ +{ + lib, + mylib, + ... +}: { + enable = lib.mkEnableOption "TEMPLATE"; +}