diff --git a/modules/home/programs/tui/default.nix b/modules/home/programs/tui/default.nix index f10fe53..910cb5b 100644 --- a/modules/home/programs/tui/default.nix +++ b/modules/home/programs/tui/default.nix @@ -19,6 +19,7 @@ in { lazygit = enabled; ncmpcpp = enabled; neovim = enabled; + superfile = enabled; }; }; } diff --git a/modules/home/programs/tui/superfile/config.toml b/modules/home/programs/tui/superfile/config.toml new file mode 100644 index 0000000..c051b5a --- /dev/null +++ b/modules/home/programs/tui/superfile/config.toml @@ -0,0 +1,57 @@ +# More details are at https://superfile.netlify.app/configure/superfile-config/ +# +# change your theme +# TODO: set this via stylix +theme = 'rose-pine' +# +# The editor files/directories will be opened with. (leave blank to use the EDITOR environment variable). +editor = "" +# +# Auto check for update +auto_check_update = false +# +# Cd on quit (For more details, please check out https://superfile.netlify.app/configure/superfile-config/#cd_on_quit) +cd_on_quit = false +# +# Whether to open file preview automatically every time superfile is opened. +default_open_file_preview = true +# +# The path of the first file panel when superfile is opened. (DON'T USE '~') +default_directory = "." +# +# Display file sizes using powers of 1000 (kB, MB, GB) instead of powers of 1024 (KiB, MiB, GiB). +file_size_use_si = false +# +# ================ Style ================= +# +# If you don't have or don't want Nerdfont installed you can turn this off +nerdfont = true +# +# Set transparent background or not (this only work when your terminal background is transparent) +transparent_background = false +# +# File preview width allow '0' (this mean same as file panel),'x' x must be less than 10 and greater than 1 (This means that the width of the file preview will be one xth of the total width.) +file_preview_width = 0 +# +# The length of the sidebar. If you don't want to display the sidebar, you can input 0 directly. If you want to display the value, please place it in the range of 3-20. +sidebar_width = 20 +# +# Border style +border_top = '─' +border_bottom = '─' +border_left = '│' +border_right = '│' +border_top_left = '╭' +border_top_right = '╮' +border_bottom_left = '╰' +border_bottom_right = '╯' +border_middle_left = '├' +border_middle_right = '┤' +# +# ==========PLUGINS========== # +# +# Show more detailed metadata, please install exiftool before enabling this plugin! +metadata = false +# +# Enable MD5 checksum generation for files +enable_md5_checksum = false diff --git a/modules/home/programs/tui/superfile/default.nix b/modules/home/programs/tui/superfile/default.nix new file mode 100644 index 0000000..56b7eee --- /dev/null +++ b/modules/home/programs/tui/superfile/default.nix @@ -0,0 +1,18 @@ +{ + lib, + config, + pkgs, + ... +}: let + cfg = config.marleyos.programs.superfile; +in { + options.marleyos.programs.superfile.enable = lib.mkEnableOption "superfile"; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ + superfile + ]; + + xdg.configFile."superfile/config.toml".source = ./config.toml; + }; +}