From baae94abb6a9a03914216f0f373b7b0f6b0207bd Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 19 Sep 2026 01:40:50 +0530 Subject: chore: removed all raw string configurations options in favor of files Moved all configurations which were previously raw strings chunks, for options that the home-manager options didn't provide, into files for that specific configuration and reading there contents instead (with string replacement for passing information from the rest of the configuration). --- modules/web/chawan/default.nix | 15 +---------- modules/web/chawan/user-style.css | 56 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 14 deletions(-) create mode 100644 modules/web/chawan/user-style.css (limited to 'modules/web/chawan') diff --git a/modules/web/chawan/default.nix b/modules/web/chawan/default.nix index 2169d0c..2de49bd 100644 --- a/modules/web/chawan/default.nix +++ b/modules/web/chawan/default.nix @@ -43,20 +43,7 @@ settings = { buffer = { images = true; - user-style = '' - html, body, div, section, article, main, header, footer, nav, aside, table, tr, td, th, ul, ol, li, span, p, pre, code { - background-color: black !important; - color: white !important; - } - a, a:link { color: #6bb6ff !important; } - a:visited { color: #d19aff !important; } - @media (prefers-color-scheme: light) { - html, body, div, section, article, main, header, footer, nav, aside, table, tr, td, th, ul, ol, li, span, p, pre, code { - background-color: black !important; - color: white !important; - } - } - ''; + user-style = builtins.readFile ./user-style.css; }; display = { image-mode = "auto"; diff --git a/modules/web/chawan/user-style.css b/modules/web/chawan/user-style.css new file mode 100644 index 0000000..81d368b --- /dev/null +++ b/modules/web/chawan/user-style.css @@ -0,0 +1,56 @@ +html, +body, +div, +section, +article, +main, +header, +footer, +nav, +aside, +table, +tr, +td, +th, +ul, +ol, +li, +span, +p, +pre, +code { + background-color: black !important; + color: white !important; +} +a, a:link { + color: #6bb6ff !important; +} +a:visited { + color: #d19aff !important; +} +@media (prefers-color-scheme: light) { + html, + body, + div, + section, + article, + main, + header, + footer, + nav, + aside, + table, + tr, + td, + th, + ul, + ol, + li, + span, + p, + pre, + code { + background-color: black !important; + color: white !important; + } +} -- cgit v1.2.3