add(xmonad): flake for xmonad

This commit is contained in:
Léana 江 2024-01-06 18:42:40 +01:00 committed by Léana 江
parent 5901e46486
commit 6e5cc990f9
3 changed files with 95 additions and 0 deletions

33
.config/xmonad/flake.nix Normal file
View file

@ -0,0 +1,33 @@
{
description = ''
Bring XMonad library to $PATH for the language server to work
'';
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
packages = [
(pkgs.haskell.packages.ghc947.ghcWithPackages (hpkgs:
with hpkgs; [
haskell-language-server
stylish-haskell
xmonad
xmonad-contrib
neat-interpolation
]))
];
};
});
}