miniguest/checks/default.nix
2021-06-27 20:05:27 +02:00

22 lines
464 B
Nix

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;
}