69 lines
1.8 KiB
Nix
69 lines
1.8 KiB
Nix
{
|
|
config,
|
|
options,
|
|
lib,
|
|
_pkgs,
|
|
nixpkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
# finalPkgs = _pkgs;
|
|
finalPkgs = import nixpkgs {
|
|
system = _pkgs.system;
|
|
config = { };
|
|
overlays = [ ];
|
|
# inherit system;
|
|
# overlays = [ nixgl.overlay ];
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
];
|
|
|
|
# options.nixpkgs = {
|
|
# config = lib.mkOption {
|
|
# default = { };
|
|
# example = lib.literalExpression ''
|
|
# { allowBroken = true; allowUnfree = true; }
|
|
# '';
|
|
# type = configType;
|
|
# description = ''
|
|
# Global configuration for Nixpkgs.
|
|
# The complete list of [Nixpkgs configuration options](https://nixos.org/manual/nixpkgs/unstable/#sec-config-options-reference) is in the [Nixpkgs manual section on global configuration](https://nixos.org/manual/nixpkgs/unstable/#chap-packageconfig).
|
|
|
|
# Ignored when {option}`nixpkgs.pkgs` is set.
|
|
# '';
|
|
# };
|
|
|
|
# overlays = lib.mkOption {
|
|
# default = [ ];
|
|
# example = lib.literalExpression ''
|
|
# [
|
|
# (self: super: {
|
|
# openssh = super.openssh.override {
|
|
# hpnSupport = true;
|
|
# kerberos = self.libkrb5;
|
|
# };
|
|
# })
|
|
# ]
|
|
# '';
|
|
# type = lib.types.listOf overlayType;
|
|
# description = ''
|
|
# List of overlays to apply to Nixpkgs.
|
|
# This option allows modifying the Nixpkgs package set accessed through the `pkgs` module argument.
|
|
|
|
# For details, see the [Overlays chapter in the Nixpkgs manual](https://nixos.org/manual/nixpkgs/stable/#chap-overlays).
|
|
|
|
# If the {option}`nixpkgs.pkgs` option is set, overlays specified using `nixpkgs.overlays` will be applied after the overlays that were already included in `nixpkgs.pkgs`.
|
|
# '';
|
|
# };
|
|
# };
|
|
|
|
config = {
|
|
_module.args = {
|
|
pkgs = finalPkgs;
|
|
};
|
|
};
|
|
}
|