aboutsummaryrefslogtreecommitdiffstats
path: root/home/lf.nix
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-15 13:34:27 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-15 13:34:27 +0200
commit296725b2025ffdd08d6f0115a5dc7248a9653cab (patch)
treec711eec239b59306c6363ffe2786e5ce8a68c7f4 /home/lf.nix
parent3a14e52fc594296c6c3c7b66205e0747219b6231 (diff)
downloadnixos-296725b2025ffdd08d6f0115a5dc7248a9653cab.tar.zst
Cleanup old configurations
Diffstat (limited to 'home/lf.nix')
-rw-r--r--home/lf.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/home/lf.nix b/home/lf.nix
deleted file mode 100644
index 4923fcb..0000000
--- a/home/lf.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ pkgs, ... }:
-{
- programs.lf = {
- enable = true;
- commands = {
- editor-open = ''$$EDITOR $f'';
- };
- settings = {
- preview = true;
- hidden = true;
- drawbox = true;
- icons = true;
- ignorecase = true;
- timefmt = "2006-01-02T15:04:05.999Z";
- };
- previewer.source = "/home/petri/.config/lf/pv.sh";
- keybindings = {
- ee = "editor-open";
- };
- };
-
- xdg.configFile."/home/petri/.config/lf/icons".source = ./icons;
- xdg.configFile."/home/petri/.config/lf/pv.sh" = {
- executable = true;
- source = pkgs.writeShellScript "pv" ''
- case "$1" in
- *.jpg*) timg -I "$1";;
- *.png*) timg -I "$1";;
- *.webp*) timg -I "$1";;
- *.avif*) timg -I "$1";;
- *.tar*) tar tf "$1";;
- *.zip) unzip -l "$1";;
- *.rar) unrar l "$1";;
- *.7z) 7z l "$1";;
- *.pdf) pdftotext "$1" -;;
- *) pistol "$1";;
- esac
- '';
- };
-}