2021-07-02 22:36:30 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2020-10-12 00:22:58 +00:00
|
|
|
{
|
2021-11-04 16:42:44 +00:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "";
|
|
|
|
};
|
2021-07-02 22:36:30 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
|
|
|
|
extraOptions = [ "-m 1" ];
|
|
|
|
};
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
nmt.script = ''
|
|
|
|
xsessionFile=home-files/.xsession
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
assertFileExists $xsessionFile
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
assertFileContains $xsessionFile \
|
|
|
|
'systemctl --user stop sxhkd.scope 2> /dev/null || true'
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
assertFileContains $xsessionFile \
|
2024-01-05 11:06:15 +00:00
|
|
|
'systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd @sxhkd@/bin/sxhkd -m 1 &'
|
2021-11-04 16:42:44 +00:00
|
|
|
'';
|
2020-10-12 00:22:58 +00:00
|
|
|
}
|