mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-03 05:33:13 +01:00
43a07cc8d9
Neither nixfmt nor alejandra support the "standard" way to syntax highlight multi-line strings in Nix, so nixpkgs-fmt is the only viable solution.
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
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
|
|
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"
|
|
'';
|
|
|
|
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;
|
|
|
|
xdg.configFile."joshuto/mimetype.toml".source = ./mimetype.toml;
|
|
xdg.configFile."joshuto/keymap.toml".source = ./keymap.toml;
|
|
xdg.configFile."joshuto/theme.toml".source = ./theme.toml;
|
|
xdg.configFile."joshuto/icons.toml".source = ./icons.toml;
|
|
}
|
|
];
|
|
}
|