apps/run-workflow-with-vm: add extraModules optional argument

This commit is contained in:
Gabriel Arazas 2024-01-12 19:27:28 +08:00
parent a09fa89ef2
commit 5ff88e0a61
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,7 +1,7 @@
# A very basic NixOS VM configuration intended for testing out the given # A very basic NixOS VM configuration intended for testing out the given
# workflow module. It's a good thing the baseline for the configuration is not # workflow module. It's a good thing the baseline for the configuration is not
# tedious to set up for simpler configs like this. # tedious to set up for simpler configs like this.
{ workflow }: { workflow, extraModules ? [] }:
let let
pkgs = import <nixpkgs> { }; pkgs = import <nixpkgs> { };
@ -16,7 +16,7 @@ let
in in
import <nixpkgs/nixos/lib/eval-config.nix> { import <nixpkgs/nixos/lib/eval-config.nix> {
inherit lib; inherit lib;
modules = modules ++ [ modules = modules ++ extraModules ++ [
<home-manager/nixos> <home-manager/nixos>
<disko/module.nix> <disko/module.nix>
<sops-nix/modules/sops> <sops-nix/modules/sops>