[feat] Use nix-index hmModules
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, device, ... }:
|
{ inputs, config, pkgs, lib, device, ... }:
|
||||||
let
|
let
|
||||||
# https://mipmip.github.io/home-manager-option-search/
|
# https://mipmip.github.io/home-manager-option-search/
|
||||||
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
||||||
@@ -6,6 +6,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
inputs.nix-index-database.hmModules.nix-index
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
@@ -22,7 +23,6 @@ in
|
|||||||
spotify-player
|
spotify-player
|
||||||
qmk
|
qmk
|
||||||
nodejs
|
nodejs
|
||||||
comma
|
|
||||||
neovide
|
neovide
|
||||||
sqls
|
sqls
|
||||||
vcpkg
|
vcpkg
|
||||||
@@ -90,6 +90,7 @@ in
|
|||||||
# xdg.enable = true;
|
# xdg.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
nix-index-database.comma.enable = true;
|
||||||
helix = {
|
helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -235,7 +236,7 @@ in
|
|||||||
".config/tmux/sessions".source = ../../tmux/sessions;
|
".config/tmux/sessions".source = ../../tmux/sessions;
|
||||||
".config/macchina".source = ../../macchina;
|
".config/macchina".source = ../../macchina;
|
||||||
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
|
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
|
||||||
".cache/nix-index".source = pkgs.nix-index-database;
|
# ".cache/nix-index".source = pkgs.nix-index-database;
|
||||||
} // (if lazy then {
|
} // (if lazy then {
|
||||||
".config/nvim/lua".source = ../../nvim/lua;
|
".config/nvim/lua".source = ../../nvim/lua;
|
||||||
".config/nvim/init.lua".source = ../../nvim/init.lua;
|
".config/nvim/init.lua".source = ../../nvim/init.lua;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
Google,
|
Google,
|
||||||
Custom (
|
Custom (
|
||||||
name: "Nix Packages",
|
name: "Nix Packages",
|
||||||
url: "search.nixos.org/packages?channel=unstable&query={}"
|
url: "search.nixos.org/packages?query={}&channel=unstable"
|
||||||
),
|
),
|
||||||
Custom (
|
Custom (
|
||||||
name: "GitHub",
|
name: "GitHub",
|
||||||
|
|||||||
Reference in New Issue
Block a user