nixos/shell.nix
2023-08-02 02:26:51 +03:00

20 lines
629 B
Nix

# Shell for bootstrapping flake-enabled nix and home-manager
# You can enter it through 'nix develop' or (legacy) 'nix-shell'
{ pkgs ? (import ./nixpkgs.nix) { } }: {
default = pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs; [ nix home-manager git ];
};
xmonad = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
haskell-language-server
ghc
];
pkgs.haskellPackages.ghcWithPackages = with pkgs.haskellPackages; [
xmonad
xmonad-contrib
];
};
}