From 49ee6c3ac493687a37649fa5192970fa4595db76 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Thu, 26 Feb 2026 19:12:49 -0800 Subject: [PATCH] feat: configure comma with nix index --- configuration.nix | 3 ++- flake.lock | 33 +++++++++++++++++++++++++++------ flake.nix | 5 +++++ 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index b14c5bd..b16957b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -284,9 +284,10 @@ docker docker-compose nh - comma ]; + programs.nix-index-database.comma.enable = true; + environment.variables.EDITOR = "helix"; environment.sessionVariables = { TERMINAL = "kitty"; diff --git a/flake.lock b/flake.lock index 7207390..e086d27 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1772060133, - "narHash": "sha256-VuyRptb8v1lVGMlLp4/1vRX3Efwec0CN0S6mKmDPzLg=", + "lastModified": 1772161633, + "narHash": "sha256-1LxK/Ff6sPf6fWZeV9VjHeA+hRLQssO3CjuHBvGDhW8=", "owner": "nix-community", "repo": "home-manager", - "rev": "ce9b6e52500a0ea0ec48f0bbf6d7a3e431d9dfa4", + "rev": "31ea32fa1465568e95ea1288ea1dd02689c77c5e", "type": "github" }, "original": { @@ -41,6 +41,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1771734689, + "narHash": "sha256-/phvMgr1yutyAMjKnZlxkVplzxHiz60i4rc+gKzpwhg=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "8f590b832326ab9699444f3a48240595954a4b10", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1771969195, @@ -75,6 +95,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "zen-browser": "zen-browser" @@ -88,11 +109,11 @@ ] }, "locked": { - "lastModified": 1772085492, - "narHash": "sha256-1o9qkvOI/ThFDgEbW4Q4GVK7aV+traAIWSqP7gom7/0=", + "lastModified": 1772158021, + "narHash": "sha256-UX/mZlmDYccOVGDIEFVvXkHRSjjSkOnYO/F4O6XDrKg=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "6577a70551b52ef35138e5d8b87a35d40b14eeeb", + "rev": "0af6863a54e1468ce1ef34bf0bbd073aed5a8b2e", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 0089da0..d17119d 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,10 @@ url = "github:0xc000022070/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; + nix-index-database = { + url = "github:nix-community/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs@{ @@ -27,6 +31,7 @@ ./configuration.nix nixos-hardware.nixosModules.framework-amd-ai-300-series home-manager.nixosModules.home-manager + inputs.nix-index-database.nixosModules.default { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true;