2022-06-14 22:17:15 +03:00
|
|
|
{ pkgs, config, inputs, ... }:
|
|
|
|
let
|
|
|
|
inherit (inputs.self.packages.${pkgs.system}) brig;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
environment.systemPackages = [ brig ];
|
|
|
|
|
|
|
|
systemd.user.services.brig = {
|
|
|
|
description = "Brig Daemon";
|
|
|
|
wantedBy = [ "gnome-session.target" ];
|
2022-10-15 12:06:25 +03:00
|
|
|
path = [ "/run/wrappers" config.services.kubo.package ];
|
2022-06-14 22:17:15 +03:00
|
|
|
serviceConfig = {
|
|
|
|
ExecStart = "${brig}/bin/brig --repo %h/.brig daemon launch";
|
|
|
|
#ExecStartPost = "${brig}/bin/brig fstab apply";
|
|
|
|
Restart = "always";
|
|
|
|
Slice = "background.slice";
|
|
|
|
SyslogIdentifier = "brig";
|
|
|
|
};
|
|
|
|
environment = {
|
|
|
|
inherit (config.environment.variables) IPFS_PATH;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|