- Switch Zed remote server and Flatpak packages to use `enable` suboption - Update host modules to match the new option hierarchy - Add default C++ settings (format on save, tab size) to Zed user settings - Introduce clangd LSP configuration with inlay hints and fallback command
29 lines
705 B
Nix
29 lines
705 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
mkFlatpakPackage = name: pkgId: {
|
|
options.flatpak.packages.${name}.enable = lib.mkEnableOption "Flatpak: ${name}";
|
|
|
|
config.services.flatpak.packages =
|
|
lib.mkIf config.flatpak.packages.${name}.enable [pkgId];
|
|
};
|
|
|
|
flatpakPackages = {
|
|
sober = "org.vinegarhq.Sober";
|
|
warehouse = "io.github.flattool.Warehouse";
|
|
flatseal = "com.github.tchx84.Flatseal";
|
|
};
|
|
in {
|
|
options.flatpak.enable = lib.mkEnableOption "Flatpak";
|
|
|
|
config.services.flatpak = lib.mkIf config.flatpak.enable {
|
|
enable = true;
|
|
update.onActivation = true;
|
|
packages = [];
|
|
};
|
|
|
|
imports = builtins.attrValues (builtins.mapAttrs mkFlatpakPackage flatpakPackages);
|
|
}
|