1
0
forked from extern/nix-config
donovanglover-nix-config/modules/joshuto/default.nix
Donovan Glover 7e38c259fa
meta: Replace joshuto package with overlay
This actually took *forever*, but now that I know how to write nixpkgs
overlays, any future ones I write should be relatively straight-forward.
2023-06-05 23:07:36 -04:00

29 lines
850 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
joshuto
];
home-manager.sharedModules = [
{
xdg.configFile."joshuto/joshuto.toml".text = ''
[display]
automatically_count_files = true
show_borders = false
show_hidden = 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"
'';
xdg.configFile."joshuto/preview.sh".source = ./preview.sh;
xdg.configFile."joshuto/kitty-show.sh".source = ./kitty-show.sh;
xdg.configFile."joshuto/kitty-remove.sh".source = ./kitty-remove.sh;
}
];
}