Passing sources through to pkgs and modules.

This commit is contained in:
kat witch 2021-03-03 03:05:50 +00:00
parent 9ece41ee80
commit 75041dd68c
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 7 additions and 11 deletions

View file

@ -1,6 +1,6 @@
rec {
sources = import ./nix/sources.nix;
pkgs = import ./pkgs { };
pkgs = import ./pkgs { inherit sources; };
witch = import ./lib/witch.nix { lib = pkgs.lib; };
hosts = import ./lib/hosts.nix { inherit pkgs sources witch; };

View file

@ -28,7 +28,7 @@ rec {
networking = {
inherit hostName;
};
nixpkgs.pkgs = import pkgsPath { inherit (config.nixpkgs) config; };
nixpkgs.pkgs = import pkgsPath { inherit (config.nixpkgs) config; inherit sources; };
};

View file

@ -1,7 +1,6 @@
{ ... }:
{ sources, ... }:
let sources = import ../../nix/sources.nix;
in {
{
home-manager.users = {
imports = [
(sources.tf-nix + "/modules/home/secrets.nix")

View file

@ -1,7 +1,6 @@
{ ... }:
{ sources, ... }:
let sources = import ../../nix/sources.nix;
in {
{
imports = [
./deploy
(sources.tf-nix + "/modules/nixos/secrets.nix")

View file

@ -1,9 +1,7 @@
{ config ? { }, system ? builtins.currentSystem, ... }@args:
{ config ? { }, sources, system ? builtins.currentSystem, ... }@args:
let
sources = import ../nix/sources.nix;
pkgs = import sources.nixpkgs args;
overlay = self: super: rec {
dino = super.callPackage "${sources.qyliss-nixlib}/overlays/patches/dino" {
inherit (super) dino;