mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
8127799f79
Fixes #1598.
34 lines
651 B
Nix
34 lines
651 B
Nix
{ config, pkgs, ... }: {
|
|
config = {
|
|
services.sxhkd = {
|
|
enable = true;
|
|
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // {
|
|
outPath = "@sxhkd@";
|
|
};
|
|
|
|
keybindings = {
|
|
"super + a" = "run command a";
|
|
"super + b" = null;
|
|
"super + Shift + b" = "run command b";
|
|
};
|
|
|
|
extraConfig = ''
|
|
super + c
|
|
call command c
|
|
|
|
# comment
|
|
super + d
|
|
call command d
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
'';
|
|
};
|
|
}
|