allow ability to override nixpkgs

This commit is contained in:
eyjhb 2024-08-14 12:22:33 +02:00
parent 6655200f41
commit 87f69b6f5a
Signed by: eyjhb
GPG key ID: 609F508E3239F920
5 changed files with 11 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{ config, ... }:
let
sources = import ./sources/sources.nix;
sources = import ./sources;
in {
imports = [
# secrets

View file

@ -72,7 +72,7 @@ let
};
};
sources = import ./../sources/sources.nix;
sources = import ./../sources;
in {
imports = [
(sources.disko + "/module.nix")

View file

@ -3,7 +3,7 @@
with lib;
let
sources = import ./../sources/sources.nix;
sources = import ./../sources;
in {
options.mine.state.enable = mkOption {
type = types.bool;

View file

@ -0,0 +1,7 @@
let
sources = import ./sources.nix;
# declare pkgs from sources
pkgs = import sources.nixpkgs { };
in sources // {
}