2
0
Fork 0

nixos-module: build nixos guests with external modulesPath

remotes/praha/master
Emery Hemingway 2020-06-08 21:13:01 +05:30
parent 2bf4fafa59
commit 75c24ca27b
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ self }: {
genodeHost = { config, lib, pkgs, ... }:
genodeHost = { config, lib, pkgs, modulesPath, ... }:
let
apps' = self.apps.x86_64-linux-x86_64-genode;
config' = config;
@ -7,12 +7,12 @@
pkgs' = self.packages.x86_64-linux-x86_64-genode;
legacyPackages' = self.legacyPackages.x86_64-linux-x86_64-genode;
modulesPath = "${self.inputs.nixpkgs}/nixos/modules";
modulesPath' = "${self.inputs.nixpkgs}/nixos/modules";
cfg = config.genode;
toVdi = config:
import "${modulesPath}/../lib/make-disk-image.nix" {
import "${modulesPath'}/../lib/make-disk-image.nix" {
inherit config lib pkgs;
diskSize = config.virtualbox.baseImageSize;
partitionTableType = "legacy";