From 7e0a2077784cdae7881688455273c77e10fd3097 Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Sat, 6 Dec 2025 18:42:10 +0700 Subject: [PATCH] chore: autoenable helix --- flake.lock | 57 ++++++++++++++++++++++++++- modules/home/rsydn/programs/helix.nix | 7 ++++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 582181c..471a306 100644 --- a/flake.lock +++ b/flake.lock @@ -81,6 +81,24 @@ "type": "github" } }, + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1754487366, + "narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-schemas": { "locked": { "lastModified": 1721999734, @@ -261,6 +279,21 @@ "type": "github" } }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1753579242, + "narHash": "sha256-zvaMGVn14/Zz8hnp4VWT9xVnhc8vuL3TStRqwk22biA=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "0f36c44e01a6129be94e3ade315a5883f0228a6e", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1758360447, @@ -298,7 +331,8 @@ "home-manager": "home-manager_2", "nix-ai-tools": "nix-ai-tools", "nixpkgs": "nixpkgs_3", - "sops-nix": "sops-nix" + "sops-nix": "sops-nix", + "try": "try" } }, "rust-overlay": { @@ -393,6 +427,27 @@ "type": "github" } }, + "try": { + "inputs": { + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1764893252, + "narHash": "sha256-Ua2TYmHHsJCCse6Oo6jT7ZD7Ko73dd7a70PRqqhTd6w=", + "owner": "tobi", + "repo": "try", + "rev": "9babc916eb199148c5949e7e8dee318a3f3a4770", + "type": "github" + }, + "original": { + "owner": "tobi", + "repo": "try", + "type": "github" + } + }, "zig": { "inputs": { "flake-compat": [ diff --git a/modules/home/rsydn/programs/helix.nix b/modules/home/rsydn/programs/helix.nix index 4a1390c..80a12e6 100644 --- a/modules/home/rsydn/programs/helix.nix +++ b/modules/home/rsydn/programs/helix.nix @@ -4,6 +4,13 @@ settings = { theme = "gruber-darker"; editor = { + auto-save = { + focus-lost = true; + after-delay = { + enable = true; + timeout = 3000; + }; + }; cursor-shape = { normal = "block"; insert = "bar";