rcgit

/ nixos

Commit 3a14e52f

SHA 3a14e52fc594296c6c3c7b66205e0747219b6231
Author Petri Hienonen <petri.hienonen at gmail dot com>
Author Date 2025-12-15 09:46 +0200
Committer Petri Hienonen <petri.hienonen at gmail dot com>
Commit Date 2025-12-15 09:46 +0200
Parent(s) 0df99f24d0df (diff)
Tree 0812a38038aa

patch snapshot

Update few configurations
File + - Graph
D home/chawan.nix +0 -22
M home/default.nix +18 -1
M home/tenere.nix +2 -7
3 file(s) changed, 20 insertions(+), 30 deletions(-)

home/chawan.nix

diff --git a/home/chawan.nix b/home/chawan.nix
deleted file mode 100644
index b343c11..0000000
--- a/home/chawan.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ vars, pkgs, ... }:
-
-{
-  xdg.configFile."/home/petri/.config/chawan/config.toml".text = ''
-    [buffer]
-    autofocus = true
-    images = true
-    styling = true
-    scripting = true
-    history = true
-
-    [input]
-    vi-numeric-prefix = true
-
-    [page]
-    # Here, the arrow function will be called with the vi numbered prefix if
-    # one was input, and with no argument otherwise.
-    # The numeric prefix can never be zero, so it is safe to test for undefined
-    # using the ternary operator.
-    G = 'n => n ? pager.gotoLine(n) : pager.cursorLastLine()'
-  '';
-}

home/default.nix

diff --git a/home/default.nix b/home/default.nix
index 12b7c10..7254058 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -19,7 +19,6 @@ in
     # ./quickshell
     (import ./nvim { inherit unstable; })
     ./cargo.nix
-    ./chawan.nix
     ./chromium.nix
     ./dav
     ./dunst.nix
@@ -110,6 +109,24 @@ in
 
   programs = {
     home-manager.enable = true;
+    chawan = {
+      enable = true;
+      settings = {
+        buffer = {
+          autofocus = true;
+          images = true;
+          styling = true;
+          scripting = true;
+          history = true;
+        };
+        input = {
+          vi-numeric-prefix = true;
+        };
+        chawan = {
+          G = "n => n ? pager.gotoLine(n) : pager.cursorLastLine()";
+        };
+      };
+    };
     nix-search-tv = {
       enable = true;
       enableTelevisionIntegration = true;

home/tenere.nix

diff --git a/home/tenere.nix b/home/tenere.nix
index f7cfa29..7e4fcca 100644
--- a/home/tenere.nix
+++ b/home/tenere.nix
@@ -1,11 +1,6 @@
+{ config, pkgs, ... }:
 {
-  config,
-  inputs,
-  pkgs,
-  ...
-}:
-{
-  xdg.configFile."/tenere/config.toml".text = ''
+  xdg.configFile."tenere/config.toml".text = ''
     llm  = "chatgpt"
 
     [chatgpt]