diff --git a/flake.lock b/flake.lock index e7d2436..8d0a7ed 100755 --- a/flake.lock +++ b/flake.lock @@ -21,6 +21,32 @@ "type": "github" } }, + "bun2nix": { + "inputs": { + "flake-parts": "flake-parts_2", + "import-tree": "import-tree", + "nixpkgs": [ + "handy", + "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", + "ref": "2.0.8", + "repo": "bun2nix", + "type": "github" + } + }, "darwin": { "inputs": { "nixpkgs": [ @@ -208,9 +234,27 @@ "url": "https://flakehub.com/f/hercules-ci/flake-parts/0.1" } }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "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": 1694529238, @@ -271,6 +315,27 @@ "url": "https://flakehub.com/f/cachix/git-hooks.nix/0.1.941" } }, + "handy": { + "inputs": { + "bun2nix": "bun2nix", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1777509983, + "narHash": "sha256-89HU4ri7CNum66cpjOpTmsdr2QyLCYvNBDqqWxvbqOI=", + "owner": "cjpais", + "repo": "Handy", + "rev": "a385371c32613c1ec2649a4f51522a7ddefb5d4c", + "type": "github" + }, + "original": { + "owner": "cjpais", + "repo": "Handy", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -292,6 +357,21 @@ "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" + } + }, "nix": { "inputs": { "flake-parts": "flake-parts", @@ -379,6 +459,21 @@ "type": "github" } }, + "nixpkgs-lib": { + "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, @@ -464,6 +559,7 @@ "determinate": "determinate", "disko": "disko", "firefox-addons": "firefox-addons", + "handy": "handy", "home-manager": "home-manager", "nixos-generators": "nixos-generators", "nixpkgs": "nixpkgs_4", @@ -528,6 +624,43 @@ "repo": "default", "type": "github" } + }, + "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" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "handy", + "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" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index c759c64..b943295 100755 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + handy = { + url = "github:cjpais/Handy"; + inputs.nixpkgs.follows = "nixpkgs"; + }; darwin = { url = "github:nix-darwin/nix-darwin/nix-darwin-25.11"; inputs.nixpkgs.follows = "nixpkgs"; @@ -65,6 +69,7 @@ homes.modules = with inputs; [ sops-nix.homeManagerModules.sops + handy.homeManagerModules.default ./modules/home/common ]; diff --git a/homes/x86_64-linux/evanreichard@lin-va-thinkpad/default.nix b/homes/x86_64-linux/evanreichard@lin-va-thinkpad/default.nix index a116067..bdecaa9 100755 --- a/homes/x86_64-linux/evanreichard@lin-va-thinkpad/default.nix +++ b/homes/x86_64-linux/evanreichard@lin-va-thinkpad/default.nix @@ -11,6 +11,11 @@ in { home.stateVersion = "25.11"; + # Handy Speech-To-Text + # Imported from the Handy flake as a standard Home Manager module. + # Keep it outside the reichard namespace because upstream owns the option. + services.handy.enable = true; + reichard = { user = { enable = true;