From e3783b8c8b69e78d2d123e93af9368c7ee0017a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 21 Sep 2023 06:06:10 +0300 Subject: [PATCH] nix-index: use the prebuilt one --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ modules/profiles/desktop/default.nix | 5 ++--- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 46c97d2..7c8cba7 100644 --- a/flake.lock +++ b/flake.lock @@ -103,6 +103,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1694921880, + "narHash": "sha256-yU36cs5UdzhTwsM9bUWUz43N//ELzQ1ro69C07pU/8E=", + "owner": "Mic92", + "repo": "nix-index-database", + "rev": "9d2bcc47110b3b6217dfebd6761ba20bc78aedf2", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "nix-index-database", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1695109627, @@ -156,6 +176,7 @@ "deploy-rs": "deploy-rs", "flake-utils": "flake-utils", "home-manager": "home-manager", + "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nur": "nur" diff --git a/flake.nix b/flake.nix index b6aab78..bdf4dd5 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,9 @@ deploy-rs.inputs.nixpkgs.follows = "nixpkgs"; deploy-rs.inputs.utils.follows = "flake-utils"; + nix-index-database.url = "github:Mic92/nix-index-database"; + nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; + nur.url = "github:nix-community/NUR"; }; @@ -35,6 +38,7 @@ flake-utils, home-manager, nixos-hardware, + nix-index-database, nur, } @ inputs: let myData = import ./data.nix; @@ -120,6 +124,7 @@ agenix.nixosModules.default home-manager.nixosModules.home-manager nixos-hardware.nixosModules.framework-12th-gen-intel + nix-index-database.nixosModules.nix-index { age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age; diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index 4b04e24..8cf1f50 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -52,9 +52,10 @@ }; programs = { + adb.enable = true; slock.enable = true; nm-applet.enable = true; - adb.enable = true; + command-not-found.enable = false; }; security.rtkit.enable = true; @@ -129,8 +130,6 @@ home-manager.users.motiejus = {pkgs, ...}: { xdg.configFile."awesome/rc.lua".source = ./rc.lua; - programs.nix-index.enable = true; - programs.firefox = { enable = true; profiles = {