System: Update system module template
This commit is contained in:
14
system/modules/0_template/default.nix
Normal file
14
system/modules/0_template/default.nix
Normal file
@ -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 {
|
||||
};
|
||||
}
|
7
system/modules/0_template/options.nix
Normal file
7
system/modules/0_template/options.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
...
|
||||
}: {
|
||||
enable = lib.mkEnableOption "TEMPLATE";
|
||||
}
|
Reference in New Issue
Block a user