Add nix-index-database flake
Alan Pearce alan@alanpearce.eu
Fri, 30 Jun 2023 17:00:05 +0200
3 files changed, 29 insertions(+), 1 deletions(-)
M flake.lock → flake.lock
@@ -81,6 +81,26 @@ "repo": "home-manager", "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1687097842, + "narHash": "sha256-NPAaRZx5foWLgIPfEaiEZMr9JIlEQhLEVEXpx09341Q=", + "owner": "Mic92", + "repo": "nix-index-database", + "rev": "c8210cb3fcde6860255b54ddba74dc177e6232cd", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "nix-index-database", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1686452266, @@ -133,6 +153,7 @@ "inputs": { "darwin": "darwin", "emacs-overlay": "emacs-overlay", "home-manager": "home-manager", + "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "secrets": "secrets"
M flake.nix → flake.nix
@@ -2,6 +2,8 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixos-hardware.url = "github:NixOS/nixos-hardware"; + nix-index-database.url = "github:Mic92/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; darwin.url = "github:lnl7/nix-darwin/master"; darwin.inputs.nixpkgs.follows = "nixpkgs"; home-manager.url = "github:nix-community/home-manager"; @@ -19,6 +21,7 @@ , darwin , emacs-overlay , home-manager , nixpkgs + , nix-index-database , secrets , ... } @ attrs: @@ -46,6 +49,7 @@ pkgs = darwinPkgs; extraSpecialArgs = { inherit attrs; }; modules = [ ./user/mba.nix + nix-index-database.hmModules.nix-index (secrets + "/default.nix") (secrets + "/ssh.nix") ({ nixpkgs.overlays = [ emacs-overlay.overlay ]; }) @@ -56,6 +60,7 @@ pkgs = nixosPkgs; extraSpecialArgs = { inherit attrs; }; modules = [ ./user/prefect.nix + nix-index-database.hmModules.nix-index (secrets + "/default.nix") (secrets + "/ssh.nix") ({ nixpkgs.overlays = [ emacs-overlay.overlay ]; }) @@ -66,6 +71,7 @@ pkgs = aarch64LinuxPackages; extraSpecialArgs = { inherit attrs; }; modules = [ ./user/nanopi.nix + nix-index-database.hmModules.nix-index (secrets + "/default.nix") ]; }; @@ -74,6 +80,7 @@ pkgs = nixosPkgs; extraSpecialArgs = { inherit attrs; }; modules = [ ./user/server.nix + nix-index-database.hmModules.nix-index (secrets + "/default.nix") ]; };
M user/settings/base.nix → user/settings/base.nix
@@ -51,13 +51,13 @@ config = { theme = "gruvbox-light"; }; }; + programs.nix-index-database.comma.enable = true; home.packages = with pkgs; [ pv fd sd ripgrep - comma knot-dns dateutils moreutils