Make other desktop Home Manager modules togglable

This commit is contained in:
Oliver Davies 2024-11-26 08:27:14 +00:00
parent af9edbfe1a
commit 0baed7e6f6
12 changed files with 124 additions and 77 deletions

View file

@ -1,18 +1,22 @@
{ lib, ... }:
{ config, lib, ... }:
{
services.espanso = {
enable = true;
options.features.desktop.espanso.enable = lib.mkEnableOption "Enable espanso";
configs = {
default = {
show_notifications = false;
toggle_key = "LEFT_ALT";
config = lib.mkIf config.features.desktop.espanso.enable {
services.espanso = {
enable = true;
configs = {
default = {
show_notifications = false;
toggle_key = "LEFT_ALT";
};
};
};
matches = {
base = import ./espanso/matches/base.nix { inherit lib; };
matches = {
base = import ./espanso/matches/base.nix { inherit lib; };
};
};
};
}