2021-01-14 00:56:32 +00:00
|
|
|
{ config, pkgs, ... }:
|
2021-05-07 19:28:52 +00:00
|
|
|
|
2019-09-15 21:12:08 +00:00
|
|
|
{
|
2021-09-26 09:08:45 +00:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "";
|
|
|
|
};
|
2021-05-07 19:28:52 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
|
|
|
|
extraOptions = [ "-m 1" ];
|
|
|
|
};
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
nmt.script = ''
|
|
|
|
xsessionFile=home-files/.xsession
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
assertFileExists $xsessionFile
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
assertFileContains $xsessionFile \
|
|
|
|
'systemctl --user stop sxhkd.scope 2> /dev/null || true'
|
2021-06-16 22:16:17 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
assertFileContains $xsessionFile \
|
2023-10-24 15:48:13 +00:00
|
|
|
'systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd @sxhkd@/bin/sxhkd -m 1 &'
|
2021-09-26 09:08:45 +00:00
|
|
|
'';
|
2019-09-15 21:12:08 +00:00
|
|
|
}
|