mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
8127799f79
Fixes #1598.
22 lines
605 B
Nix
22 lines
605 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
config = {
|
|
services.sxhkd = {
|
|
enable = true;
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // { outPath = "@sxhkd@"; };
|
|
extraOptions = [ "-m 1" ];
|
|
extraPath = "/home/the-user/bin:/extra/path/bin";
|
|
};
|
|
|
|
nmt.script = ''
|
|
serviceFile=home-files/.config/systemd/user/sxhkd.service
|
|
|
|
assertFileExists $serviceFile
|
|
|
|
assertFileRegex $serviceFile 'ExecStart=@sxhkd@/bin/sxhkd -m 1'
|
|
|
|
assertFileRegex $serviceFile \
|
|
'Environment=PATH=.*\.nix-profile/bin:/home/the-user/bin:/extra/path/bin'
|
|
'';
|
|
};
|
|
}
|