test: microVM test

This commit is contained in:
Nick 2025-11-04 03:30:52 -06:00
parent bd1d74997d
commit f15baf7ccb
21 changed files with 405 additions and 529 deletions

View file

@ -1,28 +0,0 @@
{ pkgs, config, ... }:
{
devShells = {
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (pkgs)
age
gitmoji-cli
graphviz
imv
just
nixfmt
just-lsp
litemdview
nil
openssl
pqiv
sops
ssh-to-age
taplo
vscode-langservers-extracted
watchexec
;
};
shellHook = "${config.pre-commit.installationScript}";
};
};
}

View file

@ -1,7 +0,0 @@
{
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
commitizen.enable = true;
# statix.enable = true;
};
}

View file

@ -1,20 +1,48 @@
{
perSystem = {
pkgs,
lib,
config,
self',
...
}: let
configPath = ./config;
perSystem =
{
pkgs,
lib,
config,
self',
...
}:
{
devShells = {
default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (pkgs)
age
gitmoji-cli
graphviz
imv
just
nixfmt
just-lsp
litemdview
nil
openssl
pqiv
sops
ssh-to-age
taplo
vscode-langservers-extracted
watchexec
;
};
shellHook = "${config.pre-commit.installationScript}";
};
};
devshellImports = let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = devshellImports;
};
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
commitizen.enable = true;
};
treefmt.programs.nixfmt = {
enable = true;
width = 200;
};
};
}