aboutsummaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
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}'';
};
};
};