Browse Source

nixos-module: build nixos guests with external modulesPath

remotes/praha/master
Emery Hemingway 1 year ago
parent
commit
75c24ca27b
  1. 6
      nixos-modules/default.nix

6
nixos-modules/default.nix

@ -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";

Loading…
Cancel
Save