diff --git a/flake.lock b/flake.lock index 1e62fe0..a8030bb 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,30 @@ { "nodes": { + "bun2nix": { + "inputs": { + "flake-parts": "flake-parts_3", + "import-tree": "import-tree", + "nixpkgs": [ + "hunk", + "nixpkgs" + ], + "systems": "systems", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1770895533, + "narHash": "sha256-v3QaK9ugy9bN9RXDnjw0i2OifKmz2NnKM82agtqm/UY=", + "owner": "nix-community", + "repo": "bun2nix", + "rev": "c843f477b15f51151f8c6bcc886954699440a6e1", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "bun2nix", + "type": "github" + } + }, "carbonfox": { "flake": false, "locked": { @@ -156,9 +181,27 @@ "type": "github" } }, + "flake-parts_3": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_2" + }, + "locked": { + "lastModified": 1769996383, + "narHash": "sha256-AnYjnFWgS49RlqX7LrC4uA+sCCDBj0Ry/WOJ5XWAsa0=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "57928607ea566b5db3ad13af0e57e921e6b12381", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-utils": { "inputs": { - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1731533236, @@ -283,6 +326,42 @@ "type": "github" } }, + "hunk": { + "inputs": { + "bun2nix": "bun2nix", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1784318871, + "narHash": "sha256-vS+b2qGwKbBGmtjY/zQRwFpsRs4wX4eItWuAemHwwFo=", + "owner": "modem-dev", + "repo": "hunk", + "rev": "9296ef68298e9828c2e83ff2416512c624aa17c4", + "type": "github" + }, + "original": { + "owner": "modem-dev", + "repo": "hunk", + "type": "github" + } + }, + "import-tree": { + "locked": { + "lastModified": 1763762820, + "narHash": "sha256-ZvYKbFib3AEwiNMLsejb/CWs/OL/srFQ8AogkebEPF0=", + "owner": "vic", + "repo": "import-tree", + "rev": "3c23749d8013ec6daa1d7255057590e9ca726646", + "type": "github" + }, + "original": { + "owner": "vic", + "repo": "import-tree", + "type": "github" + } + }, "jj-starship": { "inputs": { "flake-utils": "flake-utils", @@ -388,6 +467,21 @@ "type": "github" } }, + "nixpkgs-lib_2": { + "locked": { + "lastModified": 1769909678, + "narHash": "sha256-cBEymOf4/o3FD5AZnzC3J9hLbiZ+QDT/KDuyHXVJOpM=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "72716169fe93074c333e8d0173151350670b824c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "nixpkgs-regression": { "locked": { "lastModified": 1643052045, @@ -490,6 +584,7 @@ "git-hooks-nix": "git-hooks-nix_2", "herdr": "herdr", "home-manager": "home-manager", + "hunk": "hunk", "jj-starship": "jj-starship", "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs_4", @@ -514,6 +609,21 @@ } }, "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_3": { "flake": false, "locked": { "lastModified": 1681028828, @@ -529,11 +639,33 @@ "type": "github" } }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "hunk", + "bun2nix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1770228511, + "narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "337a4fe074be1042a35086f15481d763b8ddc0e7", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, "zig": { "inputs": { "flake-compat": "flake-compat_3", "nixpkgs": "nixpkgs_5", - "systems": "systems_2" + "systems": "systems_3" }, "locked": { "lastModified": 1776733015, diff --git a/flake.nix b/flake.nix index 99bb489..e81fb53 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,10 @@ url = "github:ogulcancelik/herdr"; inputs.nixpkgs.follows = "nixpkgs"; }; + hunk = { + url = "github:modem-dev/hunk"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs @ {self, ...}: let diff --git a/lib/macos/home.nix b/lib/macos/home.nix index 5d1dc7f..40878b3 100644 --- a/lib/macos/home.nix +++ b/lib/macos/home.nix @@ -6,7 +6,7 @@ else "14"; in { home.sessionPath = [ - "/opt/homebrew/opt/node@22/bin" + "/opt/homebrew/opt/node@24/bin" "/opt/homebrew/bin" "/opt/podman/bin" "/Applications/Obsidian.app/Contents/MacOS" diff --git a/lib/shared/home.nix b/lib/shared/home.nix index ed65670..22963cb 100644 --- a/lib/shared/home.nix +++ b/lib/shared/home.nix @@ -19,6 +19,9 @@ carbonfox = inputs.carbonfox; jj-starship = inputs.jj-starship.packages.${system}.default; in { + imports = [ + inputs.hunk.homeManagerModules.default + ]; home.username = userName; home.homeDirectory = base; # Home Manager needs a bit of information about you and the paths it should @@ -417,4 +420,8 @@ in { pkgs.nushellPlugins.polars ]; }; + + programs.hunk = { + enable = true; + }; }