diff options
| author | triethyl <triethylammonium@pm.me> | 2026-01-12 20:29:44 -0500 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2026-01-12 20:29:44 -0500 |
| commit | 9d865876376e4ba1fe0c8f066c206c1fefc44eb2 (patch) | |
| tree | 627490053551793b9324d31735fe3e2f9a1950de /home-manager/features/gui/desktops/niri/parts/iota-maker.nix | |
| parent | 37c5d5768346b5dfbedcf9c391368844918e6e51 (diff) | |
niri: renamed scrap-maker to iota-maker
Diffstat (limited to 'home-manager/features/gui/desktops/niri/parts/iota-maker.nix')
| -rw-r--r-- | home-manager/features/gui/desktops/niri/parts/iota-maker.nix | 22 |
1 files changed, 22 insertions, 0 deletions
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 + '') + ]; + }; +} |
