103a485bf8
Implement a `wisdomSimpleSlice` helper in `desktop/options.nix` to reduce boilerplate for simple Home Manager modules that only manage packages. This helper handles the `enable` option creation, platform-gating via `availableOn`, and conditional inclusion in `home.packages`. Refactor several existing wisdom modules to use this new helper: - `wisdomBrowsersChrome` - `wisdomBrowsersEdge` - `wisdomEditorsKate` - `wisdomEditorsObsidian` Additionally, clean up `wisdom/default.nix` by removing the explicit import of `wisdomShellBash` (which is now handled via auto-wiring) and improving code formatting.
9 lines
223 B
Nix
9 lines
223 B
Nix
{ self, ... }: {
|
|
flake.homeManagerModules.wisdomEditorsKate = self.lib.wisdomSimpleSlice {
|
|
path = "editors.kate";
|
|
default = false;
|
|
description = "Kate.";
|
|
packages = pkgs: [ pkgs.kdePackages.kate ];
|
|
};
|
|
}
|