Add php package group and emacs mode.

This commit is contained in:
Kevin Baensch 2023-06-16 23:59:53 +02:00
parent 90765052c0
commit b723545776
Signed by: derped
GPG key ID: C0F1D326C7626543
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{ config, lib, ... }:
with lib;
mkIf (elem "emacs::php-mode" config.machine.pkgs) {
programs.emacs.init.usePackage = {
php-mode.enable = true;
};
}

10
pkgsets/php.nix Normal file
View file

@ -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 ]);
}