Colin
9ecd0adcbe
TODO: get it so open-in-mpv launches an mpv that has access to ~/.config/mpv i guess this is the 'firejail url problem'
19 lines
694 B
Nix
19 lines
694 B
Nix
# soulseek filesharing GUI app
|
|
{ pkgs, ... }:
|
|
{
|
|
sane.programs.nicotine-plus = {
|
|
packageUnwrapped = pkgs.nicotine-plus.overrideAttrs (upstream: {
|
|
postInstall = (upstream.postInstall or "") + ''
|
|
# XXX: nixpkgs creates this symlink, seemingly just for convenience;
|
|
# third-party tools like `firejail` lack a profile for "nicotine-plus", and just for "nicotine" instead.
|
|
rm $out/bin/nicotine-plus
|
|
'';
|
|
});
|
|
net = "vpn";
|
|
sandbox.method = "firejail";
|
|
# ".config/nicotine": contains the config file, with plaintext creds.
|
|
# TODO: define this as a secret instead of persisting it.
|
|
persist.byStore.private = [ ".config/nicotine" ];
|
|
};
|
|
}
|