2025-08-25 16:45:22 +02:00
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
inherit (lib) mkOption types;
|
|
|
|
|
soonixModule = ./module.nix;
|
|
|
|
|
in {
|
2025-09-02 14:21:53 +02:00
|
|
|
options = {
|
|
|
|
|
soonix = mkOption {
|
|
|
|
|
type = types.submodule {
|
|
|
|
|
# propagate pkgs to the soonix module
|
|
|
|
|
_module.args.pkgs = pkgs;
|
|
|
|
|
imports = [soonixModule];
|
|
|
|
|
};
|
|
|
|
|
default = {};
|
|
|
|
|
};
|
|
|
|
|
soonixShellHook = mkOption {
|
|
|
|
|
type = types.nullOr types.str;
|
|
|
|
|
default = null;
|
|
|
|
|
description = ''
|
|
|
|
|
Set the shell hook manually, useful if you already use `soonix.make` and
|
|
|
|
|
want to add the devshell integration.
|
|
|
|
|
'';
|
2025-08-25 16:45:22 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
config.enterShellCommands.soonix = {
|
2025-09-02 14:21:53 +02:00
|
|
|
text =
|
|
|
|
|
if config.soonixShellHook != null
|
|
|
|
|
then config.soonixShellHook
|
|
|
|
|
else config.soonix.shellHook;
|
2025-08-25 16:45:22 +02:00
|
|
|
deps = ["env"];
|
|
|
|
|
};
|
|
|
|
|
}
|