aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--home/chawan.nix22
-rw-r--r--home/default.nix19
-rw-r--r--home/tenere.nix9
3 files changed, 20 insertions, 30 deletions
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()'
- '';
-}
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;
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]