2024-04-02 02:56:51 +00:00
|
|
|
# tips/tricks
|
|
|
|
# - audio recording
|
|
|
|
# - default recording input will be silent, on lappy.
|
|
|
|
# - Audio Setup -> Rescan Audio Devices ...
|
|
|
|
# - Audio Setup -> Recording device -> sysdefault
|
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-05-13 19:59:03 +00:00
|
|
|
buildCost = 1;
|
|
|
|
|
2024-01-23 15:59:50 +00:00
|
|
|
sandbox.method = "bwrap";
|
2024-02-13 11:14:38 +00:00
|
|
|
sandbox.whitelistAudio = true;
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-05-28 07:14:27 +00:00
|
|
|
sandbox.autodetectCliPaths = "existingFile";
|
2024-01-27 17:19:48 +00:00
|
|
|
sandbox.extraHomePaths = [
|
|
|
|
# support media imports via file->open dir to some common media directories
|
|
|
|
"tmp"
|
|
|
|
"Music"
|
2024-02-23 13:09:44 +00:00
|
|
|
# audacity needs the entire config dir mounted if running in a sandbox
|
|
|
|
".config/audacity"
|
2024-01-23 15:59:50 +00:00
|
|
|
];
|
2024-04-02 02:56:51 +00:00
|
|
|
sandbox.extraPaths = [
|
|
|
|
"/dev/snd" # for recording audio inputs to work
|
|
|
|
];
|
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
|
|
|
|
'';
|
2023-12-21 03:10:38 +00:00
|
|
|
};
|
|
|
|
}
|