mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 03:59:46 +01:00
20 lines
463 B
Nix
20 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'
|
|
'';
|
|
};
|
|
}
|