shell: use nix-shell args to call

This makes the different shell options easier to compose with
This commit is contained in:
Primrose 2025-07-04 17:36:33 +02:00
parent 8000d569c7
commit 363a8f4036
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -7,27 +7,24 @@
./nix/packages/overlay.nix ./nix/packages/overlay.nix
]; ];
}, },
}: rec { withXMonad ? false,
default = pkgs.mkShell { }: let
packages = with pkgs; [ inherit (pkgs) lib;
just in
jq pkgs.mkShell {
npins packages = with pkgs;
disko [
]; just
}; jq
npins
withXMonad = pkgs.mkShell { disko
inputsFrom = [ ]
default ++ lib.optionals withXMonad [
]; (haskellPackages.ghcWithPackages (self: [
packages = with pkgs; [ self.xmonad-contrib
(haskellPackages.ghcWithPackages (self: [ self.xmonad-extras
self.xmonad-contrib ]))
self.xmonad-extras haskell-language-server
])) cabal-install
haskell-language-server ];
cabal-install }
];
};
}