Skip to content

Commit

Permalink
Setup nixd and better devshells
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Oct 24, 2024
1 parent 77e32a6 commit 084166f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
28 changes: 20 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@
outputs = {
self,
nixpkgs,
home-manager,
nixvim,
agenix,
nix-darwin,
d,
binwarden,
treefmt-nix,
...
} @ inputs: let
Expand Down Expand Up @@ -107,11 +103,17 @@
pkgs = import nixpkgs {inherit system;};
in {
default = pkgs.mkShell {
inputsFrom = with self.devShells.${system}; [formatting];
inputsFrom = with self.devShells.${system}; [
building
formatting
managing-secrets
];
};
building = pkgs.mkShell {
packages = [
agenix.packages.${system}.default
#nix-darwin.packages.${system}.default
];
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
nix-darwin.packages.${system}.default
];
};
formatting = pkgs.mkShell {
packages = [
Expand All @@ -124,6 +126,16 @@
'')
];
};
managing-secrets = pkgs.mkShell {
packages = [
agenix.packages.${system}.default
];
};
editing = pkgs.mkShell {
packages = [
pkgs.nixd
];
};
});
};
}
5 changes: 3 additions & 2 deletions system/with/user/with/program/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@
'';

plugins.lsp.enable = true;
plugins.lsp.servers.nil_ls.enable = true;
plugins.lsp.servers.nil_ls.settings.formatting.command = ["nixfmt"];
plugins.lsp.servers.nixd.enable = true;
plugins.lsp.servers.nixd.autostart = true;
plugins.lsp.servers.nixd.cmd = ["nixd"];
plugins.lsp.servers.csharp_ls.enable = true;
plugins.lsp.servers.marksman.enable = true;
plugins.lsp.servers.jsonls.enable = true;
Expand Down

0 comments on commit 084166f

Please sign in to comment.