Make other desktop Home Manager modules togglable
This commit is contained in:
parent
af9edbfe1a
commit
0baed7e6f6
12 changed files with 124 additions and 77 deletions
|
@ -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; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue