mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Add flake VM
This commit is contained in:
parent
53508e59c5
commit
b7d42c340b
4 changed files with 72 additions and 0 deletions
18
hosts/muvm/hardware-configuration.nix
Normal file
18
hosts/muvm/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
networking.useDHCP = lib.mkForce true;
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
# following configuration is added only when building VM with build-vm
|
||||
virtualisation = {
|
||||
memorySize = 2048; # Use 2048MiB memory.
|
||||
cores = 3;
|
||||
graphics = false;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue