blob: 6dd2fc13dab45a7f6e42e8c853c4276a21514c93 (
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 = "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;
};
};
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
options = [
"defaults"
"size=2G"
"mode=755"
];
};
}
|