bonfire/nixosModules/bonfire.nix

29 lines
733 B
Nix
Raw Normal View History

{ 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";
};
};
};
config = mkIf cfg.enable {
environment.sessionVariables = {
BONFIRE_HOME = cfg.home;
};
};
}