home-manager/tests/modules/services/pbgopy/service.nix
2021-04-29 00:26:17 +02:00

22 lines
487 B
Nix

{ config, pkgs, ... }: {
config = {
services.pbgopy.enable = true;
nixpkgs.overlays = [
(self: super: {
pbgopy = pkgs.writeScriptBin "dummy-pbgopy" "" // {
outPath = "@pbgopy@";
};
})
];
nmt.script = ''
serviceFile=home-files/.config/systemd/user/pbgopy.service
assertFileExists $serviceFile
assertFileContains $serviceFile \
'ExecStart=@pbgopy@/bin/pbgopy serve --port 9090 --ttl 24h'
'';
};
}