pbgopy: add service
This commit is contained in:
parent
e3828769e8
commit
e6a58a7e71
7 changed files with 76 additions and 0 deletions
1
tests/modules/services/pbgopy/default.nix
Normal file
1
tests/modules/services/pbgopy/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ pbgopy = import ./service.nix; }
|
||||
22
tests/modules/services/pbgopy/service.nix
Normal file
22
tests/modules/services/pbgopy/service.nix
Normal 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'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue