2021-07-03 20:40:29 +02:00
|
|
|
{ pkgs, config, lib, modulesPath, ... }@all:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.magic_rb.hardware.toothpick;
|
|
|
|
qemu-guest = import (modulesPath + "/profiles/qemu-guest.nix") all;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.magic_rb.hardware.toothpick = mkEnableOption "Enable omen.";
|
|
|
|
|
|
|
|
config = mkIf cfg (mkMerge
|
|
|
|
[
|
|
|
|
{
|
2022-03-12 23:07:19 +01:00
|
|
|
boot.loader.grub =
|
|
|
|
{ device = "/dev/vda";
|
|
|
|
enable = true;
|
|
|
|
version = 2;
|
|
|
|
};
|
2021-07-03 20:40:29 +02:00
|
|
|
boot.initrd.kernelModules =
|
|
|
|
[ "nvme" ];
|
|
|
|
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
|
|
|
|
}
|
|
|
|
qemu-guest
|
|
|
|
]);
|
|
|
|
}
|