{ lib, pkgs, ... }: let # relative path from this module wofiAssets = ../../../assets/system/conf/wofi; in { # Declare an option to enable Wofi options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher"; # Apply config if enabled config = { enableWofi, ... }: lib.mkIf enableWofi { # Install system package environment.systemPackages = [ pkgs.wofi ]; # Copy config files to /etc/xdg/wofi environment.etc."xdg/wofi".source = wofiAssets; }; }