feat: introduce treefmt and fmt all

This commit is contained in:
steveej 2024-11-15 10:17:56 +01:00
parent 80250b0179
commit 27c6c4f9fa
237 changed files with 5440 additions and 5214 deletions

View file

@ -3,20 +3,14 @@
vmPkgsPath,
buildPkgsPath,
nixosConfigPath,
}: let
buildPkgs = import buildPkgsPath {};
vmPkgs' = import vmPkgsPath {};
vmPkgs =
vmPkgs'
// {
runtimeShell = "${vmPkgs'.bash}/${vmPkgs'.bash.shellPath}";
};
}:
let
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}";
@ -36,8 +30,10 @@
modules = [
nixosConfig
vmConfig
{virtualisation.useBootLoader = true;}
{ virtualisation.useBootLoader = true; }
];
})
.config;
in {vmWithBootLoaderMixed = vmWithBootLoaderConfigMixed.system.build.vm;}
}).config;
in
{
vmWithBootLoaderMixed = vmWithBootLoaderConfigMixed.system.build.vm;
}