mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
e75aef331d
Signed-off-by: Magic_RB <magic_rb@redalder.org>
21 lines
507 B
Nix
21 lines
507 B
Nix
{ 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
|
|
[
|
|
{
|
|
boot.loader.grub.devices = [ "/dev/vda" ];
|
|
boot.initrd.kernelModules =
|
|
[ "nvme" ];
|
|
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
|
|
}
|
|
qemu-guest
|
|
]);
|
|
}
|