2024-01-20 11:11:12 +00:00
|
|
|
# soulseek filesharing GUI app
|
2024-01-21 03:56:33 +00:00
|
|
|
{ pkgs, ... }:
|
2024-01-20 11:11:12 +00:00
|
|
|
{
|
|
|
|
sane.programs.nicotine-plus = {
|
2024-01-21 03:56:33 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
});
|
2024-02-14 01:49:49 +00:00
|
|
|
|
2024-01-21 23:59:15 +00:00
|
|
|
sandbox.method = "firejail";
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-02-08 21:51:32 +00:00
|
|
|
sandbox.net = "vpn";
|
2024-02-14 01:49:49 +00:00
|
|
|
|
2024-01-20 11:11:12 +00:00
|
|
|
# ".config/nicotine": contains the config file, with plaintext creds.
|
|
|
|
# TODO: define this as a secret instead of persisting it.
|
|
|
|
persist.byStore.private = [ ".config/nicotine" ];
|
|
|
|
};
|
|
|
|
}
|