This is more of a backrest problem I know, but I thought it worth asking here as maybe someone has got it working. I’m looking for a working copy of Nix config to start backrest.
At the moment I have
{ lib, pkgs, … }:
{
systemd.user.services.backrest = {
enable = true;
description = “Start backrest - a restic web frontend”;
environment.BACKREST_PORT = “127.0.0.1:9898”;
wantedBy = [ “multi-user.target” ];
serviceConfig = {
ExecStart = lib.getExe pkgs.backrest;
Restart = “on-failure”;
RestartSec = “5s”;
};
};
}
which is giving me the error when I start the service
Jun 22 12:21:53 lenny (backrest)[18679]: backrest.service: Unable to locate executable ‘backrest’: No such file or directory
Has someone a working NixOS config for backrest?