Begin add gpuPassgrouth conf
This commit is contained in:
parent
f7ad61e5a0
commit
c117a43b27
12 changed files with 402 additions and 0 deletions
28
modules/gpuPassthrough/default.nix
Normal file
28
modules/gpuPassthrough/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.customModules.gpuPassthrough = {
|
||||
enable = mkEnableOption ''
|
||||
Enable gpu passthgrouth with my custom configurations
|
||||
'';
|
||||
};
|
||||
config =
|
||||
let
|
||||
cfg = config.customModules.gpuPassthrough;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
|
||||
# hooks.qemu = {
|
||||
# win10 = {
|
||||
# prepare.begin = {
|
||||
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue