2021-01-14 01:56:32 +01:00
|
|
|
{ config, pkgs, ... }:
|
2019-09-15 23:12:08 +02:00
|
|
|
{
|
|
|
|
config = {
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
2021-01-14 01:56:32 +01:00
|
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // { outPath = "@sxhkd@"; };
|
|
|
|
extraOptions = [ "-m 1" ];
|
2019-09-15 23:12:08 +02:00
|
|
|
extraPath = "/home/the-user/bin:/extra/path/bin";
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2020-04-10 00:25:21 +02:00
|
|
|
serviceFile=home-files/.config/systemd/user/sxhkd.service
|
2019-09-15 23:12:08 +02:00
|
|
|
|
|
|
|
assertFileExists $serviceFile
|
|
|
|
|
2021-01-14 01:56:32 +01:00
|
|
|
assertFileRegex $serviceFile 'ExecStart=@sxhkd@/bin/sxhkd -m 1'
|
2019-09-15 23:12:08 +02:00
|
|
|
|
|
|
|
assertFileRegex $serviceFile \
|
|
|
|
'Environment=PATH=.*\.nix-profile/bin:/home/the-user/bin:/extra/path/bin'
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|