2021-01-14 00:56:32 +00:00
|
|
|
{ config, pkgs, ... }:
|
2021-05-07 19:28:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
expectedFileRegex = ''
|
|
|
|
systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd \
|
|
|
|
@sxhkd@/bin/sxhkd -m 1 &
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
|
2019-09-15 21:12:08 +00:00
|
|
|
{
|
|
|
|
config = {
|
2021-05-07 19:28:52 +00:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "";
|
|
|
|
};
|
|
|
|
|
2019-09-15 21:12:08 +00:00
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
2021-01-14 00:56:32 +00:00
|
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // { outPath = "@sxhkd@"; };
|
|
|
|
extraOptions = [ "-m 1" ];
|
2019-09-15 21:12:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2021-05-07 19:28:52 +00:00
|
|
|
xsessionFile=home-files/.xsession
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-05-07 19:28:52 +00:00
|
|
|
assertFileExists $xsessionFile
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-05-07 19:28:52 +00:00
|
|
|
assertFileRegex $xsessionFile ${expectedFileRegex}
|
2019-09-15 21:12:08 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|