Minimize pkgs use, add stable channel for unstable systems, more separation and such

This commit is contained in:
Bun 2025-03-27 08:53:35 -04:00
parent e2c86171a5
commit 9190e09c93
23 changed files with 112 additions and 93 deletions

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, stable, unstable, ... }:
{
nix.registry.stable.flake = stable;
nix.registry.unstable.flake = unstable;
_module.args.pkgsStable = import stable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
}

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, unstable, ... }:
{ config, lib, pkgs, ... }:
{
imports = [ ./unfree ];
imports = [
./channels
./unfree
];
nix = {
package = lib.mkForce pkgs.nix;
@ -8,11 +11,5 @@
"nix-command"
"flakes"
];
registry.unstable.flake = unstable;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
}