1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-15 23:59:45 +01:00
home-manager/tests/modules/services/sxhkd/service.nix

21 lines
457 B
Nix
Raw Normal View History

2019-09-15 23:12:08 +02:00
{ config, ... }:
{
config = {
services.sxhkd = {
enable = true;
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
assertFileRegex $serviceFile 'ExecStart=.*/bin/sxhkd'
assertFileRegex $serviceFile \
'Environment=PATH=.*\.nix-profile/bin:/home/the-user/bin:/extra/path/bin'
'';
};
}