nix-files/hosts/common/programs/nicotine-plus.nix
Colin 9ecd0adcbe firefox: sandbox with firejail
TODO: get it so open-in-mpv launches an mpv that has access to ~/.config/mpv

i guess this is the 'firejail url problem'
2024-01-21 23:59:15 +00:00

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" ];
};
}