summaryrefslogtreecommitdiff
path: root/hosts/test_vm/default.nix
blob: a62793914bb0d10f2711793ab54ace0416c946c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  pkgs,
  lib,
  inputs,
  ...
}:
{
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/libvirtd.nix" ];

  networking.hostName = "cookie_vm"; # Define your hostname.
  networking.networkmanager.enable = true;
  programs.nix-ld.enable = true;

  addons.desktop.hyprland.enable = false;
  addons.desktop.xfce.enable = true;
  addons.virtualisation.guest = true;
  virtualisation.vmVariant = {
    # following configuration is added only when building VM with build-vm
    virtualisation = {
      memorySize = 2048; # Use 2048MiB memory.
      cores = 3;
      graphics = true;
    };
  };
}