feat: superfile

This commit is contained in:
punkfairie 2025-04-06 12:39:39 -07:00
parent 01b885f69b
commit 5f0f9d4387
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 76 additions and 0 deletions

View file

@ -19,6 +19,7 @@ in {
lazygit = enabled;
ncmpcpp = enabled;
neovim = enabled;
superfile = enabled;
};
};
}

View file

@ -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

View file

@ -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;
};
}