aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/services/sxhkd/service.nix
blob: 46ce259a7189f3ced75ef11d7a5f26c90099f156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, ... }:
{
  config = {
    services.sxhkd = {
      enable = true;
      extraPath = "/home/the-user/bin:/extra/path/bin";
    };

    nmt.script = ''
      local serviceFile=home-files/.config/systemd/user/sxhkd.service

      assertFileExists $serviceFile

      assertFileRegex $serviceFile 'ExecStart=.*/bin/sxhkd'

      assertFileRegex $serviceFile \
        'Environment=PATH=.*\.nix-profile/bin:/home/the-user/bin:/extra/path/bin'
    '';
  };
}