pbgopy: add service

This commit is contained in:
Ivar 2020-12-03 03:55:37 +01:00 committed by Robert Helgesson
parent e3828769e8
commit e6a58a7e71
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1 @@
{ pbgopy = import ./service.nix; }

View file

@ -0,0 +1,22 @@
{ 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'
'';
};
}