mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 10:23:06 +01:00
Jo
fde4abd59d
feat(module): add use-lix option to nix module feat(module): update fish config for catppuccin
26 lines
444 B
Nix
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];
|
|
};
|
|
}
|