From 33fe40f1bb6cbdd9ee4bd16188a0e2aa385fb1d9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 16 Jun 2023 10:01:42 -0400 Subject: [PATCH] joshuto: Begin migration to home-manager module --- home/joshuto/default.nix | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/home/joshuto/default.nix b/home/joshuto/default.nix index 309e4f9b..ebf8eb26 100644 --- a/home/joshuto/default.nix +++ b/home/joshuto/default.nix @@ -1,21 +1,25 @@ { pkgs, ... }: { - home.packages = with pkgs; [ joshuto ]; + programs.joshuto = { + enable = true; - xdg.configFile."joshuto/joshuto.toml".text = /* toml */ '' - [display] - automatically_count_files = true - show_borders = false - show_hidden = true - show_icons = true - line_number_style = "absolute" - collapse_preview = false + settings = { + display = { + automatically_count_files = true; + show_borders = false; + show_hidden = true; + show_icons = true; + line_number_style = "absolute"; + collapse_preview = false; + }; - [preview] - max_preview_size = 10000000000 - preview_script = "~/.config/joshuto/preview.sh" - preview_shown_hook_script = "~/.config/joshuto/kitty-show.sh" - preview_removed_hook_script = "~/.config/joshuto/kitty-remove.sh" - ''; + preview = { + max_preview_size = 10000000000; + preview_script = "~/.config/joshuto/preview.sh"; + preview_shown_hook_script = "~/.config/joshuto/kitty-show.sh"; + preview_removed_hook_script = "~/.config/joshuto/kitty-remove.sh"; + }; + }; + }; xdg.configFile."joshuto/preview.sh".source = ./preview.sh; xdg.configFile."joshuto/kitty-show.sh".source = ./kitty-show.sh;