summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-01-12 20:29:44 -0500
committertriethyl <triethylammonium@pm.me>2026-01-12 20:29:44 -0500
commit9d865876376e4ba1fe0c8f066c206c1fefc44eb2 (patch)
tree627490053551793b9324d31735fe3e2f9a1950de
parent37c5d5768346b5dfbedcf9c391368844918e6e51 (diff)
niri: renamed scrap-maker to iota-maker
-rwxr-xr-xhome-manager/features/gui/desktops/niri/default.nix3
-rw-r--r--home-manager/features/gui/desktops/niri/parts/iota-maker.nix22
2 files changed, 24 insertions, 1 deletions
diff --git a/home-manager/features/gui/desktops/niri/default.nix b/home-manager/features/gui/desktops/niri/default.nix
index ba70110..14a045b 100755
--- a/home-manager/features/gui/desktops/niri/default.nix
+++ b/home-manager/features/gui/desktops/niri/default.nix
@@ -18,7 +18,8 @@ in {
mako.enable = true;
hyprlock.enable = false;
quickshell.enable = true;
- scrap-maker.enable = true;
+ iota-maker.enable = true;
+ sunsetr.enable = true;
};
};
}
diff --git a/home-manager/features/gui/desktops/niri/parts/iota-maker.nix b/home-manager/features/gui/desktops/niri/parts/iota-maker.nix
new file mode 100644
index 0000000..3c5e979
--- /dev/null
+++ b/home-manager/features/gui/desktops/niri/parts/iota-maker.nix
@@ -0,0 +1,22 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: let
+ cfg = config.features.gui.desktops.niri.parts.iota-maker;
+
+ inboxDirectory = "~/Sync/vault/inbox";
+in {
+ options.features.gui.desktops.niri.parts.iota-maker.enable = lib.mkEnableOption "iota maker";
+ config = lib.mkIf cfg.enable {
+ home.packages = [
+ (pkgs.writers.writeNuBin "iota-maker" ''
+ let iota_text = fuzzel -d -l 0 -p "" -x 8 -y 8 -w 40
+ let iota_name = date now | format date "%s"
+ let iota_path = ("${inboxDirectory}" + "/" + $iota_name + ".md") | path expand
+ $iota_text | save $iota_path
+ '')
+ ];
+ };
+}