19 lines
488 B
Nix
19 lines
488 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
wofiAssets = ../../../assets/system/conf/wofi;
|
|
in
|
|
{
|
|
# Option to enable Wofi
|
|
options.enableWofi = lib.mkEnableOption "Enable Wofi terminal launcher";
|
|
|
|
# Config applied when module is evaluated
|
|
config = {
|
|
# Add Wofi to systemPackages if enabled
|
|
environment.systemPackages = lib.mkIf (config.enableWofi) [ pkgs.wofi ];
|
|
|
|
# Install wofi config files
|
|
environment.etc."xdg/wofi".source = lib.mkIf (config.enableWofi) wofiAssets;
|
|
};
|
|
}
|