mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
apps/run-workflow-with-vm: add extraModules optional argument
This commit is contained in:
parent
a09fa89ef2
commit
5ff88e0a61
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user