refactor(wisdom): migrate app and browser modules to wisdomSimpleSlice

Replace manual Home Manager module definitions in `localsend`,
`pokeclicker`, and `flow-browser` with the `wisdomSimpleSlice`
helper. This reduces boilerplate by centralizing the option
declaration and configuration logic.
This commit is contained in:
2026-07-17 11:31:35 -03:00
parent f424ab98c7
commit 0939766e3a
3 changed files with 43 additions and 80 deletions
+7 -17
View File
@@ -1,18 +1,8 @@
{ ... }: {
flake.homeManagerModules.wisdomAppsPokeclicker =
{ config, lib, pkgs, ... }:
let
root = config.chiasson.home;
cfg = config.chiasson.home.apps.pokeclicker;
pokeclickerPkg = pkgs.callPackage ./package { };
in
{
options.chiasson.home.apps.pokeclicker.enable = lib.mkEnableOption "PokéClicker desktop (Farigh fork .deb nix)." // {
default = false;
};
config = lib.mkIf (root.enable && cfg.enable) {
home.packages = [ pokeclickerPkg ];
};
};
{ self, ... }: {
flake.homeManagerModules.wisdomAppsPokeclicker = self.lib.wisdomSimpleSlice {
path = "apps.pokeclicker";
default = false;
description = "PokéClicker desktop (Farigh fork .deb nix).";
packages = pkgs: [ (pkgs.callPackage ./package { }) ];
};
}