1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

process-compose: add shortcuts test

This commit is contained in:
Louis Orleans 2024-09-01 01:40:55 -07:00
parent c739322dec
commit e0336ad244
No known key found for this signature in database
4 changed files with 27 additions and 0 deletions

View file

@ -127,6 +127,7 @@ in import nmtSrc {
./modules/programs/powerline-go
./modules/programs/pubs
./modules/programs/pyenv
./modules/programs/process-compose
./modules/programs/qcal
./modules/programs/qutebrowser
./modules/programs/ranger

View file

@ -0,0 +1 @@
{ process-compose-shortcuts = ./shortcuts.nix; }

View file

@ -0,0 +1,22 @@
{ config, pkgs, ... }:
{
config = {
programs.process-compose = {
enable = true;
package = pkgs.writeScriptBin "dummy-process-compose" "";
shortcuts = { help.shortcut = "?"; };
};
nmt.script = let
configDir = if pkgs.stdenv.isDarwin then
"home-files/Library/Application Support/process-compose"
else
"home-files/.config/process-compose";
in ''
shortcutsFile="${configDir}/shortcuts.yaml"
assertFileExists "$shortcutsFile"
assertFileContent "$shortcutsFile" "${./shortcuts.yaml}"
'';
};
}

View file

@ -0,0 +1,3 @@
shortcuts:
help:
shortcut: '?'