mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Merge 7c176d9216 into 14fbadd9aa
This commit is contained in:
commit
b102c04663
2 changed files with 31 additions and 0 deletions
5
modules/genebean/default.nix
Normal file
5
modules/genebean/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
#
|
||||
]
|
||||
}
|
||||
26
modules/genebean/sample.nix
Normal file
26
modules/genebean/sample.nix
Normal 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
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue