22 lines
382 B
Nix
22 lines
382 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
cfg = config.marleyos.programs.wofi;
|
|
in {
|
|
options.marleyos.programs.wofi.enable = mkEnableOption "wofi";
|
|
|
|
config = mkIf cfg.enable {
|
|
marleyos.apps.launcher = {
|
|
inherit (config.programs.wofi) package;
|
|
command = "--show drun";
|
|
};
|
|
|
|
programs.wofi = {
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|