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" "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": { "nixago": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -661,6 +681,7 @@
"anyrun": "anyrun", "anyrun": "anyrun",
"crafted-emacs": "crafted-emacs", "crafted-emacs": "crafted-emacs",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"stylix": "stylix", "stylix": "stylix",
"tokyonight-folke": "tokyonight-folke", "tokyonight-folke": "tokyonight-folke",

View file

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

View file

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