Some minor fixes for vm target
This commit is contained in:
parent
4f12db815b
commit
3027ff2f1a
2 changed files with 21 additions and 17 deletions
|
@ -25,9 +25,12 @@ in
|
|||
|
||||
imports = [ ./profile.nix ];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.enable {
|
||||
services.qemuGuest.enable = true;
|
||||
virtualisation = lib.mkIf cfg.enableWhenVmTarget {
|
||||
})
|
||||
(lib.mkIf cfg.enableWhenVmTarget {
|
||||
virtualisation = {
|
||||
vmVariant = {
|
||||
khscodes.virtualisation.qemu-guest.enable = true;
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
@ -38,10 +41,12 @@ in
|
|||
"-smp 8"
|
||||
"-vga none -device virtio-gpu-gl,hostmem=2G,blob=true,venus=true"
|
||||
rng
|
||||
] ++ spice;
|
||||
};
|
||||
]
|
||||
++ spice;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -10,6 +10,5 @@
|
|||
device = "/dev/sda";
|
||||
diskName = "nixos";
|
||||
};
|
||||
khscodes.users.khs.enable = true;
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue