fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Naïm Faviersxhkd: set scope OOMPolicy to continue14b54157

master
608 B26 linesraw
1{ config, pkgs, ... }:
2
3{
4  xsession = {
5    enable = true;
6    windowManager.command = "";
7  };
8
9  services.sxhkd = {
10    enable = true;
11    package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
12    extraOptions = [ "-m 1" ];
13  };
14
15  nmt.script = ''
16    xsessionFile=home-files/.xsession
17
18    assertFileExists $xsessionFile
19
20    assertFileContains $xsessionFile \
21      'systemctl --user stop sxhkd.scope 2> /dev/null || true'
22
23    assertFileContains $xsessionFile \
24      'systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd @sxhkd@/bin/sxhkd -m 1 &'
25  '';
26}