[WIP] Migrate code into a proper Nix module and use said module

This commit is contained in:
Gene Liverman 2025-10-02 08:48:27 -04:00
parent 366aa58ee5
commit 7c176d9216
No known key found for this signature in database
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{ ... }: {
imports = [
#
]
}

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.genebean.sample;
in {
imports = [
# paths of other modules
];
options.genebean.sample = {
enable = mkEnableOption "Enable the genebean sample module";
foo = mkOption {
type = types.str;
default = "defaultFoo";
description = "An example string option for the genebean sample module.";
};
};
config = mkIf cfg.enable {
# configuration settings when enabled
genebean.sample = {
# option definitions
};
};
}