Minimize pkgs use, add stable channel for unstable systems, more separation and such
This commit is contained in:
parent
e2c86171a5
commit
9190e09c93
23 changed files with 112 additions and 93 deletions
14
modules/home/settings/nix/channels/default.nix
Normal file
14
modules/home/settings/nix/channels/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue