aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix2
-rw-r--r--lib/default.nix4
2 files changed, 3 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 5225649..e65ae2a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -12,7 +12,7 @@
overlays.default = final: prev: import ./pkgs { nixpkgs = prev; };
nixosModules = import ./nixos self;
- lib = import ./lib self;
+ lib = import ./lib { inherit self; nixpkgsDefault = nixpkgs; };
nixosConfigurations = {
tarballMox = self.lib.nixturrisTarballSystem { board = "mox"; nixpkgs = nixpkgs; };
diff --git a/lib/default.nix b/lib/default.nix
index 3a8e279..211451e 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,4 +1,4 @@
-self: rec {
+{ self, nixpkgsDefault }: rec {
# Mapping of board name to the appropriate system
boardSystem = {
@@ -15,7 +15,7 @@ self: rec {
# NixOS system for specific Turris board
nixturrisSystem = {
board,
- nixpkgs,
+ nixpkgs ? nixpkgsDefault,
system ? boardSystem.${board}.system,
modules ? [],
override ? {}