mirror of
https://github.com/nix-community/home-manager
synced 2024-08-23 20:46:31 +02:00
23 lines
475 B
Nix
23 lines
475 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 --ttl 24h'
|
|
'';
|
|
};
|
|
}
|