26 lines
501 B
Nix
26 lines
501 B
Nix
# wofi.nix
|
|
{ lib, ... }:
|
|
|
|
let
|
|
wofiAssets = ../../../assets/system/conf/wofi;
|
|
wofiFiles = builtins.readDir wofiAssets;
|
|
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
|
|
src = "${wofiAssets}/${name}";
|
|
});
|
|
|
|
enableWofi = true;
|
|
in
|
|
{
|
|
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
|
|
|
|
config = lib.mkIf enableWofi {
|
|
myApps = {
|
|
wofi = {
|
|
enable = true;
|
|
assetsDir = wofiAssets;
|
|
files = wofiConfs;
|
|
};
|
|
};
|
|
};
|
|
}
|