{ 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.kubo.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; }; }; }