From 0c15e86846872f1be09d4a22538bd8980d296eee Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Tue, 23 Apr 2024 11:32:18 +0200 Subject: [PATCH] Add nix index database --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/flake.lock b/flake.lock index d458db7..91d5bcb 100644 --- a/flake.lock +++ b/flake.lock @@ -469,6 +469,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1713668931, + "narHash": "sha256-rVlwWQlgFGGK3aPVcKmtYqWgjYnPah5FOIsYAqrMN2w=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "07ece11b22217b8459df589f858e92212b74f1a1", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixlib": { "locked": { "lastModified": 1712450863, @@ -769,6 +789,7 @@ "jovian": "jovian", "lanzaboote": "lanzaboote", "linger": "linger", + "nix-index-database": "nix-index-database", "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_4", diff --git a/flake.nix b/flake.nix index 0e95bd7..8d22f0f 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + # Nix index database files + nix-index-database.url = "github:nix-community/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; + # Secret management with sops sops-nix.url = "github:Mic92/sops-nix"; @@ -85,6 +89,7 @@ lanzaboote, jovian, nixos-hardware, + nix-index-database, conduit, ... } @ inputs: let @@ -133,6 +138,7 @@ lanzaboote.nixosModules.lanzaboote disko.nixosModules.disko home-manager.nixosModules.home-manager + nix-index-database.nixosModules.nix-index { home-manager.sharedModules = [inputs.plasma-manager.homeManagerModules.plasma-manager]; } @@ -149,6 +155,7 @@ lanzaboote.nixosModules.lanzaboote disko.nixosModules.disko home-manager.nixosModules.home-manager + nix-index-database.nixosModules.nix-index { home-manager.sharedModules = [inputs.plasma-manager.homeManagerModules.plasma-manager]; } @@ -193,6 +200,7 @@ ./nixos/hosts/iso/configuration.nix sops-nix.nixosModules.sops home-manager.nixosModules.home-manager + nix-index-database.nixosModules.nix-index { home-manager.sharedModules = [inputs.plasma-manager.homeManagerModules.plasma-manager]; } @@ -203,6 +211,7 @@ system = "armv7l-linux"; specialArgs = {inherit inputs outputs;}; modules = [ + nix-index-database.nixosModules.nix-index # make the module declared by the linger flake available to our config #linger.nixosModules."armv7l-linux".default #pihole.nixosModules."armv7l-linux".default