refactor(nixosmodules): move boot config to module

This commit is contained in:
Mohammad Rafiq 2025-04-27 00:20:25 +08:00
parent 2d29c8ffef
commit 5bef7c46a6
No known key found for this signature in database
9 changed files with 61 additions and 57 deletions

View file

@ -11,10 +11,13 @@ in
{
imports = [
./nix-config.nix
./boot.nix
];
options = {
"${moduleName}".enable = lib.mkEnableOption "Enable ${moduleName}.";
"${moduleName}" = {
enable = lib.mkEnableOption "Enable ${moduleName}.";
};
};
config = lib.mkIf cfg.enable {