From d9a31ddff37bb9cd54b705de5bca7044f198bccb Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 4 Mar 2025 05:00:58 +0000 Subject: [PATCH] programs: add (and ship) see-cat; a program to pretty-print anything in the terminal --- hosts/common/programs/assorted.nix | 1 + hosts/common/programs/default.nix | 1 + hosts/common/programs/see-cat.nix | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 hosts/common/programs/see-cat.nix diff --git a/hosts/common/programs/assorted.nix b/hosts/common/programs/assorted.nix index 08639ecb2..65246f915 100644 --- a/hosts/common/programs/assorted.nix +++ b/hosts/common/programs/assorted.nix @@ -106,6 +106,7 @@ in "rsync" # "s6-rc" # service manager # "screen" + "see-cat" # pretty-print equivalent to 'cat' "smartmontools" # smartctl # "socat" "strace" diff --git a/hosts/common/programs/default.nix b/hosts/common/programs/default.nix index 6ced133c3..5c25d70bc 100644 --- a/hosts/common/programs/default.nix +++ b/hosts/common/programs/default.nix @@ -176,6 +176,7 @@ ./sblast ./schlock.nix ./seatd.nix + ./see-cat.nix ./sfeed.nix ./shadow.nix ./signal-desktop.nix diff --git a/hosts/common/programs/see-cat.nix b/hosts/common/programs/see-cat.nix new file mode 100644 index 000000000..a2d8d54d9 --- /dev/null +++ b/hosts/common/programs/see-cat.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + sane.programs.see-cat = { + # if image rendering is enabled, "existing" may be too restrictive; + # grant access to the whole directory, as images are usually somewhere within that. + sandbox.autodetectCliPaths = "existingDirOrParent"; + }; +}