24 lines
641 B
Nix
24 lines
641 B
Nix
|
{ 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" ];
|
||
|
path = [ "/run/wrappers" config.services.ipfs.package ];
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|