2025-04-23 14:19:05 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
2025-04-30 10:43:25 +01:00
|
|
|
with lib;
|
|
|
|
|
2025-04-23 14:19:05 +01:00
|
|
|
let
|
2025-04-30 03:09:17 +01:00
|
|
|
cfg = config.features.coding.phpactor;
|
2025-04-23 14:19:05 +01:00
|
|
|
in
|
|
|
|
{
|
2025-04-30 03:09:17 +01:00
|
|
|
options.features.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
|
2025-04-23 14:19:05 +01:00
|
|
|
|
2025-04-30 10:43:25 +01:00
|
|
|
config = mkIf cfg.enable {
|
2025-04-23 14:19:05 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
phpactor
|
|
|
|
];
|
|
|
|
|
|
|
|
xdg.configFile.phpactor = {
|
|
|
|
source = ./config;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|