mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
8a175a8913
Fixes tests that are affected by <https://github.com/NixOS/nixpkgs/pull/333744>.
32 lines
767 B
Nix
32 lines
767 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.cachix-agent = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@cachix-agent@"; };
|
|
name = "test-agent";
|
|
};
|
|
|
|
test.stubs.nix = { };
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/cachix-agent.service \
|
|
${
|
|
builtins.toFile "cachix-agent.service" ''
|
|
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Service]
|
|
Environment=PATH=@nix@/bin
|
|
EnvironmentFile=/home/hm-user/.config/cachix-agent.token
|
|
ExecStart=@cachix-agent@/bin/cachix deploy agent test-agent home-manager
|
|
KillMode=process
|
|
Restart=on-failure
|
|
|
|
[Unit]
|
|
Description=Cachix Deploy Agent
|
|
''
|
|
}
|
|
'';
|
|
}
|