72904c318c
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
20 lines
457 B
Nix
20 lines
457 B
Nix
{ config, ... }:
|
|
{
|
|
config = {
|
|
services.sxhkd = {
|
|
enable = true;
|
|
extraPath = "/home/the-user/bin:/extra/path/bin";
|
|
};
|
|
|
|
nmt.script = ''
|
|
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'
|
|
'';
|
|
};
|
|
}
|