add direnv and set up haskell ls for xmonad work

This commit is contained in:
Schrottkatze 2023-12-05 15:54:07 +01:00
parent bd0804ae22
commit 1921ea7357
4 changed files with 12 additions and 2 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -1 +1,2 @@
result
.direnv/

View file

@ -30,7 +30,16 @@
nixos-hardware,
mac-brcm-fw,
...
} @ inputs: {
} @ inputs: let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = [
(pkgs.haskellPackages.ghcWithPackages
(pkgs: with pkgs; [xmonad xmonad-contrib]))
pkgs.haskell-language-server
];
};
nixosConfigurations = {
monosodium-glutamate-g = nixpkgs.lib.nixosSystem {
specialArgs = {

View file

@ -4,7 +4,6 @@
sessionVariables.EDITOR = "hx";
packages = [
pkgs.nil
pkgs.haskell-language-server
pkgs.nodePackages_latest.vscode-html-languageserver-bin
pkgs.nodePackages_latest.vscode-json-languageserver-bin
pkgs.nodePackages_latest.vscode-css-languageserver-bin