dotfiles/nix/lib/mkSystem.nix

31 lines
774 B
Nix

{ arch, stable, unstable, nur, extraOverlays ? [] }:
let
overlays = [
(import ../overlays/python.nix)
# FIXME: Can't enable this here since brew-nix is not yet "initialized" at this point
#(import ../overlays/vesktop.nix)
] ++ extraOverlays;
# Placed here so that we don't need to specify hash for fetchTarball
packageOverrides = pkgs: {
nur = import nur {
nurpkgs = pkgs;
inherit pkgs;
};
};
in {
system = arch;
pkgs = import stable {
system = arch;
inherit overlays;
config.allowUnfree = true;
config.packageOverrides = packageOverrides;
};
pkgs-unstable = import unstable {
system = arch;
inherit overlays;
config.allowUnfree = true;
# config.packageOverrides = packageOverrides;
};
}