diff --git a/modules/home/profiles.nix b/modules/home/profiles.nix index f0ae72a..e1faf21 100644 --- a/modules/home/profiles.nix +++ b/modules/home/profiles.nix @@ -57,6 +57,7 @@ in { nemo = enabled; neo = enabled; neovim = enabled; + superfile = enabled; tea = enabled; }; diff --git a/modules/home/programs/default.nix b/modules/home/programs/default.nix index 87be485..238686c 100644 --- a/modules/home/programs/default.nix +++ b/modules/home/programs/default.nix @@ -34,6 +34,7 @@ ./ripgrep.nix ./ssh.nix ./starship + ./superfile.nix ./systemctl.nix ./tea.nix ./tmux.nix diff --git a/modules/home/programs/superfile.nix b/modules/home/programs/superfile.nix new file mode 100644 index 0000000..30a8703 --- /dev/null +++ b/modules/home/programs/superfile.nix @@ -0,0 +1,52 @@ +{ + config, + lib, + 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".text = + # https://superfile.netlify.app/configure/superfile-config/ + # toml + '' + theme = "${config.lib.stylix.colors.scheme-name}" + editor = "" # use $EDITOR + auto_check_update = false + cd_on_quit = false + default_open_file_preview = true + 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + nerfont = true + transparent_background = false + file_preview_width = 0 + sidebar_width = 20 + 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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + metadata = false # requires exiftool + enable_md5_checksum = false + ''; + }; +} diff --git a/snowflake/modules/home/programs/tui/superfile/config.toml b/snowflake/modules/home/programs/tui/superfile/config.toml deleted file mode 100644 index c051b5a..0000000 --- a/snowflake/modules/home/programs/tui/superfile/config.toml +++ /dev/null @@ -1,57 +0,0 @@ -# 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/snowflake/modules/home/programs/tui/superfile/default.nix b/snowflake/modules/home/programs/tui/superfile/default.nix deleted file mode 100644 index 56b7eee..0000000 --- a/snowflake/modules/home/programs/tui/superfile/default.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ - 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; - }; -}