fork/home-manager
git clone https://git.julia.blue/fork/home-manager
44d1a854
master
1{ config , pkgs , ...} : 2 3let 4script = pkgs . writeShellScript "script.sh" '' 5echo "test" 6'' ; 7in { 8services . sxhkd = { 9enable = true ; 10 11package = config . lib . test . mkStubPackage { outPath = "@sxhkd@" ; }; 12 13keybindings = { 14"super + a" = "run command a" ; 15"super + b" = null ; 16"super + Shift + b" = "run command b" ; 17"super + s" = script ; 18}; 19 20extraConfig = '' 21super + c 22call command c 23 24# comment 25super + d 26call command d 27'' ; 28}; 29 30nmt . script = '' 31sxhkdrc =home-files/.config/sxhkd/sxhkdrc 32 33assertFileExists $ sxhkdrc 34 35assertFileContent $ sxhkdrc ${ 36pkgs . substituteAll { 37src = ./sxhkdrc ; 38inherit script ; 39} 40} 41'' ; 42}