fork/home-manager

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

Robert Helgessoncachix-agent: add module939731b8

master
777 B32 linesraw
1{ config, ... }:
2
3{
4  services.cachix-agent = {
5    enable = true;
6    package = config.lib.test.mkStubPackage { outPath = "@cachix-agent@"; };
7    name = "test-agent";
8  };
9
10  test.stubs.nix = { };
11
12  nmt.script = ''
13    assertFileContent \
14      home-files/.config/systemd/user/cachix-agent.service \
15      ${
16        builtins.toFile "cachix-agent.service" ''
17          [Install]
18          WantedBy=default.target
19
20          [Service]
21          Environment=PATH=@nix@/bin
22          EnvironmentFile=/home/hm-user/.config/cachix-agent.token
23          ExecStart='@cachix-agent@/bin/cachix' 'deploy' 'agent' 'test-agent' 'home-manager'
24          KillMode=process
25          Restart=on-failure
26
27          [Unit]
28          Description=Cachix Deploy Agent
29        ''
30      }
31  '';
32}