MAJOR: add nixpkgs-unstable

WARNING: currently sets allowUnfree since idk how to use allowUnfreePredicate for alternative channels
This commit is contained in:
Emile Clark-Boman 2025-08-03 00:48:52 +10:00
parent de67846d56
commit c5207a5406
2 changed files with 29 additions and 1 deletions

View file

@ -3,6 +3,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
#home-manager = {
# url = "github:nix-community/home-manager";
@ -19,6 +20,7 @@
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
grub2-themes,
colmena,
...
@ -31,6 +33,13 @@
allowUnfree = false; # sanity check
};
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true; # TODO: bandaid solution... (for minecraft-server)
};
};
# TODO: come back to this its really cool
# this is just something I'm experimenting with
# PROJECT_ROOT = builtins.toString ./.;
@ -71,6 +80,8 @@
colmenaHive = colmena.lib.makeHive {
meta = {
nixpkgs = pkgs;
specialArgs = {inherit pkgs-unstable;};
# set nixpkgs per server
nodeNixpkgs = {
hyrule = import nixpkgs {