puzzlevision/modules/home/apps/development/zed-editor.nix
Jo fde4abd59d refactor(module): clean up some module inputs
feat(module): add use-lix option to nix module

feat(module): update fish config for catppuccin
2024-09-10 10:46:16 +02:00

26 lines
444 B
Nix

{
lib,
pkgs,
inputs,
namespace,
config,
...
}: with lib; with lib.${namespace};
let
cfg = config.${namespace}.apps.zed-editor;
zed-fhs = pkgs.buildFHSUserEnv {
name = "zed";
targetPkgs = pkgs:
with pkgs; [
zed-editor
];
runScript = "zed";
};
in {
options.${namespace}.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
config = mkIf cfg.enable {
home.packages = [zed-fhs];
};
}