programs: ship exiftool

This commit is contained in:
2024-07-23 17:18:50 +00:00
parent 1fc0ae3066
commit b21002207a
5 changed files with 13 additions and 1 deletions

View File

@@ -135,7 +135,7 @@ in
# something inside pleroma invokes `sh` w/o specifying it by path, so this is needed to allow pleroma to start # something inside pleroma invokes `sh` w/o specifying it by path, so this is needed to allow pleroma to start
pkgs.bash pkgs.bash
# used by Pleroma to strip geo tags from uploads # used by Pleroma to strip geo tags from uploads
pkgs.exiftool config.sane.programs.exiftool.package
# i saw some errors when pleroma was shutting down about it not being able to find `awk`. probably not critical # i saw some errors when pleroma was shutting down about it not being able to find `awk`. probably not critical
pkgs.gawk pkgs.gawk
# needed for email operations like password reset # needed for email operations like password reset

View File

@@ -127,6 +127,7 @@ in
# "dmidecode" # "dmidecode"
"dtrx" # `unar` alternative, "Do The Right eXtraction" "dtrx" # `unar` alternative, "Do The Right eXtraction"
# "efivar" # "efivar"
"exiftool"
"eza" # a better 'ls' "eza" # a better 'ls'
# "flashrom" # "flashrom"
"git" # needed as a user package, for config. "git" # needed as a user package, for config.

View File

@@ -41,6 +41,7 @@
./epiphany.nix ./epiphany.nix
./errno.nix ./errno.nix
./evince.nix ./evince.nix
./exiftool.nix
./fcitx5.nix ./fcitx5.nix
./feedbackd.nix ./feedbackd.nix
./firefox.nix ./firefox.nix

View File

@@ -0,0 +1,7 @@
{ ... }:
{
sane.programs.exiftool = {
sandbox.method = "bwrap";
sandbox.autodetectCliPaths = "existingFile";
};
}

View File

@@ -218,6 +218,9 @@ in
"sane-scripts.sync-music" = {}; "sane-scripts.sync-music" = {};
"sane-scripts.sync-from-iphone" = {}; "sane-scripts.sync-from-iphone" = {};
"sane-scripts.tag-music".suggestedPrograms = [
"exiftool" #< for (slightly) better sandboxing than default exiftool
];
"sane-scripts.tag-music".sandbox = { "sane-scripts.tag-music".sandbox = {
method = "bwrap"; method = "bwrap";
autodetectCliPaths = "existing"; autodetectCliPaths = "existing";