add checks output

This commit is contained in:
Julie B. 2021-06-27 20:05:27 +02:00
parent c2dc3bbce7
commit 9488c4f942
2 changed files with 22 additions and 0 deletions

21
checks/default.nix Normal file
View File

@ -0,0 +1,21 @@
inputs@{ self, nixpkgs, ... }:
final: prev:
let
kvm_guest = nixpkgs.lib.nixosSystem {
inherit (final) system;
modules = [
self.nixosModules.miniguest
{
boot.miniguest.enable = true;
boot.loader.grub.enable = false;
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "mode=755" ];
};
} ];
};
in final.lib.optionalAttrs final.stdenv.isLinux {
build_kvm_guest = kvm_guest.config.system.build.miniguest;
}

View File

@ -24,6 +24,7 @@
devShell = final.devshell.mkShell {
imports = [ (final.devshell.importTOML ./devshell.toml) ];
};
checks = import ./checks inputs final prev;
};
};
};