aboutsummaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-02-26 12:57:10 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-02-26 12:57:10 -0600
commit1932c82d72fb74971b180f84e06bcd1724e6271b (patch)
treed05af13ef77756165aaeb820c64c8b6193cb3998 /modules/services
parent8a66eb1b6b14027170a60bf2a66ddfa5984574ab (diff)
a bit of customizing
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/nixos/btopweb.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/nixos/btopweb.nix b/modules/services/nixos/btopweb.nix
index dc6ef87..d27ede1 100644
--- a/modules/services/nixos/btopweb.nix
+++ b/modules/services/nixos/btopweb.nix
@@ -5,6 +5,15 @@
...
}: let
cfg = config.collinux.services.btopweb;
+
+ btopSettings = pkgs.writeText "btop.conf" ''
+ color_theme = "tomorrow-night"
+ enable_mouse = true
+ background_update = false
+
+ proc_tree = true
+ proc_colors = true
+ '';
in {
imports = [
(import ./mkCaddyCfg.nix cfg)
@@ -28,7 +37,7 @@ in {
User = "btopweb";
Type = "simple";
- ExecStart = ''${pkgs.ttyd}/bin/ttyd -W -i ${cfg.listenAddr} -p ${toString cfg.port} ${pkgs.btop}/bin/btop'';
+ ExecStart = ''${pkgs.ttyd}/bin/ttyd -W -i ${cfg.listenAddr} -p ${toString cfg.port} -t renderType=canvas -t fontSize=16 ${pkgs.btop}/bin/btop -c ${btopSettings}'';
};
};
};