ff959fd49a
* sxhkd: move to xsession.initExtra When sxhkd is launched as systemd service it doesn't have $PATH a user expects to see. * sxhkd: add news entry
32 lines
611 B
Nix
32 lines
611 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
expectedFileRegex = ''
|
|
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
|
|
@sxhkd@/bin/sxhkd -m 1 &
|
|
'';
|
|
in
|
|
|
|
{
|
|
config = {
|
|
xsession = {
|
|
enable = true;
|
|
windowManager.command = "";
|
|
};
|
|
|
|
services.sxhkd = {
|
|
enable = true;
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // { outPath = "@sxhkd@"; };
|
|
extraOptions = [ "-m 1" ];
|
|
};
|
|
|
|
nmt.script = ''
|
|
xsessionFile=home-files/.xsession
|
|
|
|
assertFileExists $xsessionFile
|
|
|
|
assertFileRegex $xsessionFile ${expectedFileRegex}
|
|
'';
|
|
};
|
|
}
|