18 lines
434 B
Nix
18 lines
434 B
Nix
{ 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 = {
|
|
environment.systemPackages = lib.mkIf (config.enableWofi) [ pkgs.wofi ];
|
|
|
|
environment.etc."xdg/wofi".source = lib.mkIf (config.enableWofi) wofiAssets;
|
|
};
|
|
}
|