Add php package group and emacs mode.
This commit is contained in:
parent
90765052c0
commit
b723545776
2 changed files with 19 additions and 0 deletions
9
pkgsets/emacs/php-mode.nix
Normal file
9
pkgsets/emacs/php-mode.nix
Normal 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
10
pkgsets/php.nix
Normal 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 ]);
|
||||||
|
}
|
Loading…
Reference in a new issue