mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
Jo
3cd04be672
fix(modules): update vaultwarden service hostname usage feat(flake): add sops-nix to flake feat: add .sops.yaml base, not quite ready just yet
26 lines
418 B
Nix
26 lines
418 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}: with lib; with lib.${namespace};
|
|
let
|
|
cfg = config.apps.zed-editor;
|
|
|
|
zed-fhs = pkgs.buildFHSUserEnv {
|
|
name = "zed";
|
|
targetPkgs = pkgs:
|
|
with pkgs; [
|
|
zed-editor
|
|
];
|
|
runScript = "zed";
|
|
};
|
|
in {
|
|
options.apps.zed-editor = { enable = mkEnableOption "zed-editor"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [zed-fhs];
|
|
};
|
|
}
|