feat(zsh): added nix-index and comma

This commit is contained in:
Patrick 2023-09-18 13:04:44 +02:00
parent 054407efb4
commit 8cd3771da0
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
4 changed files with 34 additions and 3 deletions

View file

@ -336,6 +336,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1694921880,
"narHash": "sha256-yU36cs5UdzhTwsM9bUWUz43N//ELzQ1ro69C07pU/8E=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "9d2bcc47110b3b6217dfebd6761ba20bc78aedf2",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nixlib": { "nixlib": {
"locked": { "locked": {
"lastModified": 1693701915, "lastModified": 1693701915,
@ -509,6 +529,7 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"nix-index-database": "nix-index-database",
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",

View file

@ -67,6 +67,10 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
}; };
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {

View file

@ -1,6 +1,6 @@
{ {
stateVersion, stateVersion,
config, inputs,
... ...
}: { }: {
home-manager = { home-manager = {
@ -11,6 +11,7 @@
{ {
home.stateVersion = stateVersion; home.stateVersion = stateVersion;
} }
inputs.nix-index-database.hmModules.nix-index
]; ];
}; };
# HM zsh needs this or else the startup order is fucked # HM zsh needs this or else the startup order is fucked

View file

@ -17,9 +17,14 @@
# has to be enabled to support zsh reverse search # has to be enabled to support zsh reverse search
programs.fzf.enable = true; programs.fzf.enable = true;
programs.carapace.enable = true; programs.carapace = {
enable = true;
# this would source all completers sadly some are worse than the builtin completers
enableZshIntegration = false;
};
programs.command-not-found.enable = true; programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
programs.zsh = { programs.zsh = {
enable = true; enable = true;
dotDir = ".config/zsh"; dotDir = ".config/zsh";