Split up more nix functions
This commit is contained in:
parent
0b8d1f4eaf
commit
b7a5fc7197
6 changed files with 48 additions and 50 deletions
|
@ -1,24 +1,18 @@
|
|||
{ config, lib, pkgs, unstable, ... }:
|
||||
{
|
||||
options.nixpkgs.allowUnfreePackages = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
imports = [ ./unfree ];
|
||||
|
||||
nix = {
|
||||
package = lib.mkForce pkgs.nix;
|
||||
settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
registry.unstable.flake = unstable;
|
||||
};
|
||||
|
||||
config = {
|
||||
nix = {
|
||||
package = lib.mkForce pkgs.nix;
|
||||
settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
registry.unstable.flake = unstable;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowUnfreePackages;
|
||||
|
||||
_module.args.pkgsUnstable = import unstable {
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
inherit (config.nixpkgs) config;
|
||||
};
|
||||
_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