about summary refs log tree commit diff stats
path: root/modules/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:12:04 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:30:17 +0200
commit6f58045f9711eaf435bce9f8ef66c7423890867e (patch)
treeff456d30ad72154c0a5069e7eb4f253835caa7ed /modules/by-name
parentdocs(modules/home-manager): Add a TODO regarding a better error message (diff)
downloadnixos-config-6f58045f9711eaf435bce9f8ef66c7423890867e.tar.gz
nixos-config-6f58045f9711eaf435bce9f8ef66c7423890867e.zip
fix(modules/legacy/conf/zsh): Move ENV-vars to their own modules
This also creates the `imv` and `zathura` module, but the added
configuration should be trivial (especially in the `imv` case.)
Diffstat (limited to '')
-rw-r--r--modules/by-name/im/imv/module.nix21
-rw-r--r--modules/by-name/za/zathura/module.nix74
2 files changed, 95 insertions, 0 deletions
diff --git a/modules/by-name/im/imv/module.nix b/modules/by-name/im/imv/module.nix
new file mode 100644
index 00000000..0a324e01
--- /dev/null
+++ b/modules/by-name/im/imv/module.nix
@@ -0,0 +1,21 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.programs.imv;
+in {
+  options.soispha.programs.imv = {
+    enable = lib.mkEnableOption "imv";
+  };
+
+  config.home-manager.users.soispha = lib.mkIf cfg.enable {
+    programs.imv = {
+      enable = true;
+    };
+
+    home.sessionVariables = {
+      IVIEWER = "imv";
+    };
+  };
+}
diff --git a/modules/by-name/za/zathura/module.nix b/modules/by-name/za/zathura/module.nix
new file mode 100644
index 00000000..1c55be54
--- /dev/null
+++ b/modules/by-name/za/zathura/module.nix
@@ -0,0 +1,74 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.programs.zathura;
+in {
+  options.soispha.programs.zathura = {
+    enable = lib.mkEnableOption "zathura";
+  };
+
+  config.home-manager.users.soispha = lib.mkIf cfg.enable {
+    programs.zathura = {
+      enable = true;
+      options = {
+        # Use dark mode
+        # recolor = true;
+        # recolor-keephue = true;
+
+        page-padding = 2;
+
+        selection-notification = true;
+        selection-clipboard = "clipboard";
+
+        scroll-page-aware = true;
+
+        guioptions = "";
+
+        statusbar-home-tilde = true;
+        window-title-basename = true;
+      };
+
+      # source: https://raw.githubusercontent.com/Daru-san/SnowyDots/master/modules/home/programs/zathura/default.nix
+      # TODO: Add theming. <2024-10-18>
+      # extraConfig = with config.colorScheme.palette; ''
+      #   set notification-error-bg       "#${base03}" #525252
+      #   set notification-error-fg       "#${base0A}" #ee5396
+      #   set notification-warning-bg     "#${base03}" #525252
+      #   set notification-warning-fg     "#${base0A}" #ee5398
+      #   set notification-bg             "#${base03}" #525252
+      #   set notification-fg             "#${base08}" #3ddbd9
+      #
+      #   set completion-group-bg         "#${base09}" #78a9ff
+      #   set completion-group-fg         "#${base01}" #262626
+      #   set completion-bg               "#${base09}" #78a9ff
+      #   set completion-fg               "#${base01}" #262626
+      #   set completion-highlight-bg     "#${base03}" #525252
+      #   set completion-highlight-fg     "#${base0B}" #33b1ff
+      #
+      #   # Define the color in index mode
+      #   set index-bg                   "#${base01}" #262626
+      #   set index-fg                   "#${base04}" #dde1e6
+      #   set index-active-bg             "#${base0B}" #33b1ff
+      #   set index-active-fg             "#${base04}" #dde1e6
+      #
+      #   set inputbar-bg                 "#${base02}" #262626
+      #   set inputbar-fg                 "#${base04}" #dde1e6
+      #
+      #   set statusbar-bg                "#${base02}" #262626
+      #   set statusbar-fg                "#${base04}" #dde1e6
+      #
+      #   set default-bg                  "#${base00}" #161616
+      #   set default-fg                  "#${base05}" #f2f4f8
+      #
+      #   set recolor-lightcolor          "#${base00}" #161616
+      #   set recolor-darkcolor           "#${base05}" #f2f4f8
+      # '';
+    };
+
+    home.sessionVariables = {
+      READER = "zathura";
+    };
+  };
+}