dotfiles/nix/lib/mkSystem.nix
Ahmad Ansori Palembani 93a26accd1
refactor: Move nix outside of .config dir
Technically not a config but a compose file, so I think it's better to
have outside of `.config` dir
2024-11-05 13:53:13 +07:00

29 lines
648 B
Nix

{ arch, stable, unstable, nur, extraOverlays ? [] }:
let
overlays = [
(import ../overlays/python.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;
};
}