1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00
home-manager/tests/modules/services/sxhkd/service.nix
2019-09-17 21:42:05 +02:00

21 lines
463 B
Nix

{ config, ... }:
{
config = {
services.sxhkd = {
enable = true;
extraPath = "/home/the-user/bin:/extra/path/bin";
};
nmt.script = ''
local serviceFile=home-files/.config/systemd/user/sxhkd.service
assertFileExists $serviceFile
assertFileRegex $serviceFile 'ExecStart=.*/bin/sxhkd'
assertFileRegex $serviceFile \
'Environment=PATH=.*\.nix-profile/bin:/home/the-user/bin:/extra/path/bin'
'';
};
}