From 8632afc3c2420720b58dcc9a8cf5d5348c55ae48 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 1 Nov 2024 21:35:48 -0700 Subject: [PATCH] feat: add nix-index-database and comma --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ hosts/adrastea/default.nix | 22 +++++++++++++--------- users/youwen/common/core.nix | 2 ++ 4 files changed, 41 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 1e1582a..5214d72 100755 --- a/flake.lock +++ b/flake.lock @@ -667,6 +667,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1729999765, + "narHash": "sha256-LYsavZXitFjjyETZoij8usXjTa7fa9AIF3Sk3MJSX+Y=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "0e3a8778c2ee218eff8de6aacf3d2fa6c33b2d4f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixCats": { "locked": { "lastModified": 1730202844, @@ -838,6 +858,7 @@ "lix-module": "lix-module", "nix-darwin": "nix-darwin", "nix-homebrew": "nix-homebrew", + "nix-index-database": "nix-index-database", "nixpkgs": "nixpkgs_2", "spicetify": "spicetify", "stylix": "stylix", diff --git a/flake.nix b/flake.nix index ba32fd0..5abc651 100755 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,11 @@ stylix.url = "github:danth/stylix"; + nix-index-database = { + url = "github:nix-community/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + wallpapers = { url = "git+https://code.youwen.dev/youwen5/wallpapers"; flake = false; diff --git a/hosts/adrastea/default.nix b/hosts/adrastea/default.nix index 01e018e..e4acfc8 100644 --- a/hosts/adrastea/default.nix +++ b/hosts/adrastea/default.nix @@ -26,15 +26,19 @@ inherit inputs; }; home-manager.users.youwen = { - imports = [ - ./home-manager-extras - ../../users/youwen/linux/laptop - ../../users/youwen/linux/packages/x86_64 - ../../users/youwen/linux/programs - ../../users/youwen/common - ../../users/youwen/linux/spicetify - ../../users/youwen/common/fastfetch - ]; + imports = + [ + ./home-manager-extras + ../../users/youwen/linux/laptop + ../../users/youwen/linux/packages/x86_64 + ../../users/youwen/linux/programs + ../../users/youwen/common + ../../users/youwen/linux/spicetify + ../../users/youwen/common/fastfetch + ] + ++ (with inputs; [ + nix-index-database.hmModules.nix-index + ]); }; } ] diff --git a/users/youwen/common/core.nix b/users/youwen/common/core.nix index 8351c53..5f8beed 100755 --- a/users/youwen/common/core.nix +++ b/users/youwen/common/core.nix @@ -156,6 +156,8 @@ in enableFishIntegration = true; }; + programs.nix-index-database.comma.enable = true; + programs.fd.enable = true; programs.btop = {