shell.nix: cleanup

This commit is contained in:
Daniel Langbein 2025-01-10 20:56:55 +00:00
parent 2b85e4e956
commit ef9d8a512e
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -5,30 +5,28 @@
# https://github.com/NixOS/nixpkgs/issues/166220#issuecomment-1745803058 # https://github.com/NixOS/nixpkgs/issues/166220#issuecomment-1745803058
{ {
### Import with nix channels ### ### Import nixpkgs as channels ###
# #
# NixOS stable # nixpkgs stable
#pkgs ? import <nixpkgs> { #pkgs ? import <nixpkgs> {
# # Required for IntelliJ Ultimate
# config.allowUnfree = true; # config.allowUnfree = true;
#}, #},
# NixOS unstable # nixpkgs unstable
#unstable ? import <unstable> { #unstable ? import <unstable> { }
# config.allowUnfree = true;
#}
}: }:
let let
### Import with Niv ### ### Import nixpkgs with Niv ###
# #
sources = import ./nix/sources.nix; sources = import ./nix/sources.nix;
# NixOS stable # nixpkgs stable
pkgs = import sources.nixpkgs { pkgs = import sources.nixpkgs {
# Required for IntelliJ Ultimate
config.allowUnfree = true; config.allowUnfree = true;
}; };
# NixOS unstable # nixpkgs unstable
unstable = import sources.unstable { unstable = import sources.unstable { };
config.allowUnfree = true;
};
jdk = unstable.jdk23; jdk = unstable.jdk23;
gradle = unstable.gradle.override { gradle = unstable.gradle.override {