1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 19:59:47 +01:00
home-manager/tests/modules/services/sxhkd/configuration.nix

35 lines
651 B
Nix
Raw Normal View History

2020-04-06 12:55:58 +02:00
{ config, pkgs, ... }: {
2019-09-15 23:12:08 +02:00
config = {
services.sxhkd = {
enable = true;
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // {
outPath = "@sxhkd@";
};
2019-09-15 23:12:08 +02:00
keybindings = {
"super + a" = "run command a";
"super + b" = null;
"super + Shift + b" = "run command b";
};
extraConfig = ''
super + c
call command c
2020-02-02 00:39:17 +01:00
2019-09-15 23:12:08 +02:00
# comment
super + d
call command d
'';
};
nmt.script = ''
2020-04-10 00:25:21 +02:00
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
2019-09-15 23:12:08 +02:00
assertFileExists $sxhkdrc
assertFileContent $sxhkdrc ${./sxhkdrc}
'';
};
}