mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-02 05:05:43 +01:00
3119b789f8
Alejandra is written in Rust, has more tests than nixfmt, and handles non-trivial code examples in Nix better.
29 lines
876 B
Nix
29 lines
876 B
Nix
{pkgs, ...}: {
|
|
environment.systemPackages = [
|
|
(pkgs.callPackage ../../packages/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;
|
|
}
|
|
];
|
|
}
|