Fix adding tree-sitter grammars

Add nix-index-database flake
This commit is contained in:
Evie Litherland-Smith 2023-10-23 21:33:06 +01:00
parent 5af2fac4af
commit fbea5c3884
3 changed files with 33 additions and 8 deletions

View file

@ -470,6 +470,26 @@
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1697946153,
"narHash": "sha256-7k7qIwWLaYPgQ4fxmEdew3yCffhK6rM4I4Jo3X/79DA=",
"owner": "Mic92",
"repo": "nix-index-database",
"rev": "5a2006282caaf32663cdcd582c5b18809c7d7d8d",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-index-database",
"type": "github"
}
},
"nixago": {
"inputs": {
"flake-utils": [
@ -661,6 +681,7 @@
"anyrun": "anyrun",
"crafted-emacs": "crafted-emacs",
"home-manager": "home-manager",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"stylix": "stylix",
"tokyonight-folke": "tokyonight-folke",

View file

@ -7,6 +7,10 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
@ -31,7 +35,8 @@
};
};
outputs = { self, nixpkgs, home-manager, stylix, ... }@inputs:
outputs =
{ self, nixpkgs, home-manager, nix-index-database, stylix, ... }@inputs:
let
default = {
hostName = "Atlas";
@ -76,6 +81,7 @@
./hosts/${hostName}/configuration.nix
./hosts/${hostName}/hardware-configuration.nix
home-manager.nixosModules.home-manager
nix-index-database.nixosModules.nix-index
stylix.nixosModules.stylix
({ config, lib, pkgs, ... }: {
boot.loader = {
@ -94,12 +100,7 @@
'';
};
command-not-found.enable = false;
nix-index = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
};
nix-index.enable = true;
};
nix = {
enable = true;

View file

@ -1,7 +1,7 @@
{ config, pkgs, crafted-emacs, ... }:
{
imports = [ ./formatters.nix ./lsp_servers.nix ./tree-sitter.nix ];
imports = [ ./formatters.nix ./lsp_servers.nix ];
stylix.targets.emacs.enable = false;
xdg.configFile = {
"emacs/init.el".source = ./init.el;
@ -40,6 +40,9 @@
aggressive-indent
ibuffer-project
# tree-sitter grammars
treesit-grammars.with-all-grammars
# crafted-org-packages
denote
org-appear