summaryrefslogtreecommitdiff
path: root/hosts/test_vm/default.nix
blob: 14ca75b88a93257b93186736d9e6b933a9fd3924 (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
28
29
30
31
32
33
{
  ...
}:
{
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  networking.hostName = "omega-relay"; # 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;
    };
  };

  fileSystems."/" = {
    device = "none";
    fsType = "tmpfs";
    options = [
      "defaults"
      "size=2G"
      "mode=755"
    ];
  };
}