configured nixd

This commit is contained in:
willifan 2025-01-05 00:23:52 +01:00
parent 530eff03e7
commit d73191e526
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, hostname, ... }: { lib, config, inputs, hostname, ... }:
{ {
@ -29,8 +29,12 @@
networkmanager.enable = true; networkmanager.enable = true;
hostName = "${hostname}"; hostName = "${hostname}";
}; };
console.keyMap = "en"; console.keyMap = "en";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }

View file

@ -16,6 +16,11 @@
lua_ls = {enable = true;}; lua_ls = {enable = true;};
nixd = { nixd = {
enable = true; enable = true;
settings = {
formatting.command = [ "nixpkgs-fmt" ];
nixpkgs.expr = "import <nixpkgs> {}";
};
}; };
pyright = {enable = true;}; pyright = {enable = true;};
gopls = {enable = true;}; gopls = {enable = true;};