2022-01-11 18:44:40 +01:00
|
|
|
{ config, lib, pkgs, options, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.apps.wofi;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.apps.wofi = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "";
|
|
|
|
};
|
|
|
|
executable = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "${pkgs.wofi}/bin/wofi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-01-29 12:47:38 +01:00
|
|
|
user.packages = with pkgs; [
|
2022-01-11 18:44:40 +01:00
|
|
|
wofi
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|