-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixpkgs: always provide the option definitions
This allows evaluation of configurations where nixpkgs.* options are used even when in a flake setup with unchanged default values.
- Loading branch information
Showing
4 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE. | ||
|
||
# Inspired by | ||
# https://github.com/rycee/home-manager/blob/master/modules/misc/nixpkgs.nix | ||
# (Copyright (c) 2017-2019 Robert Helgesson and Home Manager contributors, | ||
# licensed under MIT License as well) | ||
|
||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
###### implementation | ||
|
||
config = { | ||
|
||
_module.args.pkgs = import <nixpkgs> ( | ||
filterAttrs (n: v: v != null) config.nixpkgs | ||
); | ||
|
||
nixpkgs.overlays = import ../../overlays; | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters