blob: d36a5e5b232b08553431cecd16385ce688d665ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{
pkgs,
config,
lib,
...
}: let
cfg = config.collinux.terminal.shells.fish;
toml' = pkgs.formats.toml {};
conf = toml'.generate "conf.toml" {
verbs = [
{
name = "open-code";
key = "enter";
execution = "$EDITOR +{line} {file}";
working_dir = "{root}";
leave_broot = true;
}
];
};
in
lib.mkIf cfg.enable {
hjem.users."${config.collinux.user.name}" = {
files = {
".config/broot/conf.toml".source = conf;
};
packages = [pkgs.broot];
};
}
|