chore: format with alejandra
This commit is contained in:
parent
05f0cbdfb4
commit
89f5f65f2d
181 changed files with 2720 additions and 2560 deletions
|
@ -1,15 +1,22 @@
|
|||
{ system ? builtins.currentSystem, vmPkgsPath, buildPkgsPath, nixosConfigPath }:
|
||||
{
|
||||
system ? builtins.currentSystem,
|
||||
vmPkgsPath,
|
||||
buildPkgsPath,
|
||||
nixosConfigPath,
|
||||
}: let
|
||||
buildPkgs = import buildPkgsPath {};
|
||||
vmPkgs' = import vmPkgsPath {};
|
||||
vmPkgs =
|
||||
vmPkgs'
|
||||
// {
|
||||
runtimeShell = "${vmPkgs'.bash}/${vmPkgs'.bash.shellPath}";
|
||||
};
|
||||
|
||||
let
|
||||
buildPkgs = import buildPkgsPath { };
|
||||
vmPkgs' = import vmPkgsPath { };
|
||||
vmPkgs = vmPkgs' // {
|
||||
runtimeShell = "${vmPkgs'.bash}/${vmPkgs'.bash.shellPath}";
|
||||
};
|
||||
|
||||
importWithPkgs = { path, pkgs }:
|
||||
args:
|
||||
import path (args // { inherit pkgs; });
|
||||
importWithPkgs = {
|
||||
path,
|
||||
pkgs,
|
||||
}: args:
|
||||
import path (args // {inherit pkgs;});
|
||||
|
||||
nixosConfig = importWithPkgs {
|
||||
path = "${nixosConfigPath}";
|
||||
|
@ -24,12 +31,13 @@ let
|
|||
pkgs = null;
|
||||
};
|
||||
|
||||
vmWithBootLoaderConfigMixed = (evalConfig {
|
||||
modules = [
|
||||
nixosConfig
|
||||
vmConfig
|
||||
{ virtualisation.useBootLoader = true; }
|
||||
|
||||
];
|
||||
}).config;
|
||||
in { vmWithBootLoaderMixed = vmWithBootLoaderConfigMixed.system.build.vm; }
|
||||
vmWithBootLoaderConfigMixed =
|
||||
(evalConfig {
|
||||
modules = [
|
||||
nixosConfig
|
||||
vmConfig
|
||||
{virtualisation.useBootLoader = true;}
|
||||
];
|
||||
})
|
||||
.config;
|
||||
in {vmWithBootLoaderMixed = vmWithBootLoaderConfigMixed.system.build.vm;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue