2023-12-21 03:10:38 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
sane.programs.audacity = {
|
2024-01-20 11:11:12 +00:00
|
|
|
packageUnwrapped = pkgs.audacity.override {
|
2023-12-21 03:10:38 +00:00
|
|
|
# wxGTK32 uses webkitgtk-4.0.
|
|
|
|
# audacity doesn't actually need webkit though, so diable to reduce closure
|
|
|
|
wxGTK32 = pkgs.wxGTK32.override {
|
|
|
|
withWebKit = false;
|
|
|
|
};
|
|
|
|
};
|
2023-12-21 04:08:05 +00:00
|
|
|
|
2024-01-23 15:59:50 +00:00
|
|
|
sandbox.method = "bwrap";
|
2024-01-29 12:07:04 +00:00
|
|
|
sandbox.wrapperType = "wrappedDerivation";
|
2024-02-13 11:14:38 +00:00
|
|
|
sandbox.whitelistAudio = true;
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-01-27 17:19:48 +00:00
|
|
|
sandbox.autodetectCliPaths = true;
|
|
|
|
sandbox.extraHomePaths = [
|
|
|
|
# support media imports via file->open dir to some common media directories
|
|
|
|
"tmp"
|
|
|
|
"Music"
|
2024-01-23 15:59:50 +00:00
|
|
|
];
|
2024-01-22 10:04:03 +00:00
|
|
|
|
2023-12-21 04:08:05 +00:00
|
|
|
# disable first-run splash screen
|
|
|
|
fs.".config/audacity/audacity.cfg".file.text = ''
|
|
|
|
PrefsVersion=1.1.1r1
|
|
|
|
[GUI]
|
|
|
|
ShowSplashScreen=0
|
|
|
|
[Version]
|
|
|
|
Major=3
|
|
|
|
Minor=4
|
|
|
|
'';
|
2024-01-23 15:59:50 +00:00
|
|
|
# audacity needs the entire config dir mounted if running in a sandbox
|
|
|
|
fs.".config/audacity".dir = {};
|
2023-12-21 03:10:38 +00:00
|
|
|
};
|
|
|
|
}
|