nixcfg/modules/nixos/tools/fup-repl/default.nix
2024-01-11 10:31:04 +00:00

18 lines
404 B
Nix

{ lib, pkgs, config, ... }:
with lib;
with lib.plusultra;
let
cfg = config.plusultra.tools.fup-repl;
fup-repl = pkgs.writeShellScriptBin "fup-repl" ''
${pkgs.fup-repl}/bin/repl ''${@}
'';
in
{
options.plusultra.tools.fup-repl = with types; {
enable = mkBoolOpt false "Whether to enable fup-repl or not";
};
config = mkIf cfg.enable { environment.systemPackages = [ fup-repl ]; };
}