2023-12-15 12:40:04 +05:00
|
|
|
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.bonfire;
|
|
|
|
in {
|
|
|
|
options= {
|
|
|
|
bonfire = {
|
2024-04-24 14:26:24 +05:00
|
|
|
enable = mkEnableOption "Enables the Bonfire module";
|
|
|
|
|
|
|
|
home = mkOption {
|
|
|
|
type = types.path;
|
|
|
|
default = ../.;
|
|
|
|
description = "Bonfire root flake directory";
|
|
|
|
};
|
|
|
|
|
|
|
|
configDir = mkOption {
|
|
|
|
type = types.path;
|
|
|
|
default = "${config.bonfire.home}/config";
|
|
|
|
description = "Path to directory with static configuration files";
|
|
|
|
};
|
2023-12-15 12:40:04 +05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.sessionVariables = {
|
|
|
|
BONFIRE_HOME = cfg.home;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|