diff --git a/pkgsets/emacs/php-mode.nix b/pkgsets/emacs/php-mode.nix new file mode 100644 index 0000000..fa70cfa --- /dev/null +++ b/pkgsets/emacs/php-mode.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +with lib; + +mkIf (elem "emacs::php-mode" config.machine.pkgs) { + programs.emacs.init.usePackage = { + php-mode.enable = true; + }; +} diff --git a/pkgsets/php.nix b/pkgsets/php.nix new file mode 100644 index 0000000..06f12c5 --- /dev/null +++ b/pkgsets/php.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: + +let + fn = import ../fn.nix { inherit lib; }; +in { + config.machine.pkgsets.php.pkgwrap = (fn.pkgFilter config.machine.pkgsets.php.pkgs); + config.machine.pkgsets.php.pkgs = (with pkgs.php82Packages; [ + composer + ]) ++ (with pkgs; [ php82 ]); +}