aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fw/home.nix1
-rw-r--r--modules/wob.nix37
2 files changed, 38 insertions, 0 deletions
diff --git a/fw/home.nix b/fw/home.nix
index 99acdde..ebe87a4 100644
--- a/fw/home.nix
+++ b/fw/home.nix
@@ -39,6 +39,7 @@
key = "B5200ABFBD213FC9C17C6DB91291CBBCF3B9F225";
};
+ wob.enable = true;
foot.enable = true;
neovim = {
diff --git a/modules/wob.nix b/modules/wob.nix
new file mode 100644
index 0000000..fc6c062
--- /dev/null
+++ b/modules/wob.nix
@@ -0,0 +1,37 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.modules.wob;
+ scheme = config.modules.scheme;
+ fmt = col: lib.strings.removePrefix "#" col;
+in
+{
+ options.modules.wob = {
+ enable = lib.mkEnableOption "wob";
+ };
+
+ config = lib.mkIf cfg.enable {
+ home.packages = with pkgs; [
+ bat
+ fd
+ ];
+ services.wob = {
+ enable = true;
+ systemd = true;
+ settings = {
+ "" = {
+ timeout = 1000;
+ bar_color = fmt scheme.base05;
+ background_color = fmt scheme.base00;
+ border_color = fmt scheme.base0D;
+ width = 200;
+ margin = 8;
+ border_size = 1;
+ border_offset = 0;
+ overflow_mode = "nowrap";
+ anchor = "top right";
+ height = 25;
+ };
+ };
+ };
+ };
+}