aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/broot.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:03:20 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-08 17:14:14 +0000
commit82ec91b4d2c253c6ccb783f960a2788f230d6ad1 (patch)
tree94dad925340787e5a045d9bb0d094f71dedce036 /modules/terminal/system/programs/broot.nix
parentcfe198ee85f3c5ee41f4221f49b73dd492b42fdc (diff)
start avoiding lib.enum; start using hjem generators
Diffstat (limited to 'modules/terminal/system/programs/broot.nix')
-rw-r--r--modules/terminal/system/programs/broot.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/terminal/system/programs/broot.nix b/modules/terminal/system/programs/broot.nix
index 585e07a..ec20605 100644
--- a/modules/terminal/system/programs/broot.nix
+++ b/modules/terminal/system/programs/broot.nix
@@ -5,9 +5,8 @@
...
}: let
cfg = config.collinux.terminal.shells.fish;
- toml' = pkgs.formats.toml {};
- conf = toml'.generate "conf.toml" {
+ conf = {
verbs = [
{
name = "open-code";
@@ -22,7 +21,10 @@ in
lib.mkIf cfg.enable {
hjem.users."${config.collinux.user.name}" = {
files = {
- ".config/broot/conf.toml".source = conf;
+ ".config/broot/conf.toml" = {
+ generator = (pkgs.formats.toml {}).generate "conf.toml";
+ value = conf;
+ };
".config/fish/conf.d/broot.fish".text = lib.mkIf config.collinux.terminal.shells.fish.enable ''
${pkgs.broot}/bin/broot --print-shell-function fish | source