1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 02:36:54 +00:00
home-manager/tests/modules/services/cachix-agent/basic-setup.nix

28 lines
641 B
Nix
Raw Normal View History

2022-10-27 19:08:14 +02:00
{
services.cachix-agent = {
enable = true;
name = "test-agent";
};
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@/bin/cachix deploy agent test-agent home-manager
2022-10-27 19:08:14 +02:00
KillMode=process
Restart=on-failure
[Unit]
Description=Cachix Deploy Agent
''
}
'';
}