mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Separate out nix-index.nix for clarity
This commit is contained in:
parent
e95363bcc5
commit
81e70ccbd2
3 changed files with 23 additions and 15 deletions
21
modules/home/all/nix-index.nix
Normal file
21
modules/home/all/nix-index.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Platform-independent terminal setup
|
||||
{ flake, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) inputs;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
];
|
||||
|
||||
programs = {
|
||||
# Command not found handler based on nixpkgs
|
||||
nix-index-fork = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableNixCommand = true;
|
||||
};
|
||||
nix-index-database.comma.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,13 +1,7 @@
|
|||
# Platform-independent terminal setup
|
||||
{ flake, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (flake) inputs;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.nix-index-database.hmModules.nix-index
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# Unixy tools
|
||||
ripgrep
|
||||
|
|
@ -60,14 +54,6 @@ in
|
|||
};
|
||||
|
||||
programs = {
|
||||
# Command not found handler based on nixpkgs
|
||||
nix-index-fork = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableNixCommand = true;
|
||||
};
|
||||
nix-index-database.comma.enable = true;
|
||||
|
||||
lsd = {
|
||||
enable = true;
|
||||
enableAliases = true;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
./all/ssh.nix
|
||||
./all/starship.nix
|
||||
./all/terminal.nix
|
||||
./all/nix-index.nix
|
||||
./all/nix.nix
|
||||
./all/git.nix
|
||||
./all/direnv.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue