From b723545776a7f4d8307aba6299faf8d6e35b76b8 Mon Sep 17 00:00:00 2001 From: derped Date: Fri, 16 Jun 2023 23:59:53 +0200 Subject: [PATCH] Add php package group and emacs mode. --- pkgsets/emacs/php-mode.nix | 9 +++++++++ pkgsets/php.nix | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 pkgsets/emacs/php-mode.nix create mode 100644 pkgsets/php.nix 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 ]); +}