17 lines
267 B
Nix
17 lines
267 B
Nix
{ lib
|
|
, config
|
|
, ...
|
|
}:
|
|
let
|
|
cfg = config.snowfallorg.example;
|
|
in
|
|
{
|
|
options.snowfallorg.example = {
|
|
enable = lib.mkEnableOption "Snowfall Example";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.variables = { SNOWFALLORG_EXAMPLE = "enabled"; };
|
|
};
|
|
}
|