about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/lf/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 21:56:16 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 21:59:59 +0200
commit746ea42ff4616024ec41b6dcb1d2588dee4b85d1 (patch)
tree4d4a1a774f6499161f7bd3077f1f21c31f93da35 /modules/home.legacy/conf/lf/default.nix
parentrefactor(modules/legacy/conf/zsh): Parameterize and move to new `by-name` (diff)
downloadnixos-config-746ea42ff4616024ec41b6dcb1d2588dee4b85d1.tar.gz
nixos-config-746ea42ff4616024ec41b6dcb1d2588dee4b85d1.zip
refactor(modules/legacy/conf/lf): Move to new `by-name` dir
This makes it possible to mix and match between `NixOS` and
`home-manager` options and thus allows merging the secret handling
directly into this module. Furthermore, the `systemd` tempfiles handling
was also merged into this module.
Diffstat (limited to 'modules/home.legacy/conf/lf/default.nix')
-rw-r--r--modules/home.legacy/conf/lf/default.nix59
1 files changed, 0 insertions, 59 deletions
diff --git a/modules/home.legacy/conf/lf/default.nix b/modules/home.legacy/conf/lf/default.nix
deleted file mode 100644
index 7b604ed0..00000000
--- a/modules/home.legacy/conf/lf/default.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{
-  pkgs,
-  sysLib,
-  nixosConfig,
-  shell_library,
-  system,
-  ...
-}: let
-  commands = import ./commands {inherit pkgs sysLib shell_library system;};
-  keybindings = import ./keybindings {inherit nixosConfig;};
-in {
-  xdg.configFile."lf/icons".source = ./icons;
-  xdg.configFile."lf/colors".source = ./colors;
-
-  # TODO: add the systemd tempfile option here
-
-  programs.lf = {
-    enable = true;
-
-    inherit commands keybindings;
-
-    previewer = {
-      keybinding = "i";
-      source = "${pkgs.ctpv}/bin/ctpv";
-    };
-    settings = {
-      # close the server, after the last client exits
-      autoquit = true;
-
-      # disable the cusor in the preview pane
-      cursorpreviewfmt = "";
-
-      # preview for directories
-      # dirpreviews = true;
-
-      # count things in directories
-      dircounts = true;
-
-      drawbox = true;
-
-      # errorfmt = "\\033[1;91m==> ERROR:\\033[0m\\033[1;93m%s\\033[0m";
-      errorfmt = "\\033[1;91m%s\\033[0m";
-      hidden = true; # show hidden files
-      icons = true;
-      ifs = "\\n"; # internal field separator for shell commands
-      #info = "size"; # show the size of a directory
-      shell = "sh";
-      shellopts = "-eu"; # e: exit on error; u: error for unset variables
-    };
-    # TODO: remove auto quit, if it has been added
-    extraConfig = ''
-      &${pkgs.ctpv}/bin/ctpv -s $id
-      cmd on-quit %${pkgs.ctpv}/bin/ctpv -e $id
-      set cleaner ${pkgs.ctpv}/bin/ctpvclear
-
-      source ${nixosConfig.age.secrets.lf_cd_paths.path}
-    '';
-  };
-}