1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 20:59:44 +01:00
home-manager/tests/modules/services/pbgopy/service.nix

23 lines
475 B
Nix
Raw Normal View History

2020-12-03 03:55:37 +01:00
{ 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 --ttl 24h'
'';
};
}