mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
added vm build
This commit is contained in:
30
machines/vm/configuration.nix
Normal file
30
machines/vm/configuration.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, pkgs, nixos-hardware, home-manager, lib, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
home-manager.nixosModules.home-manager
|
||||
../../user
|
||||
../../modules/gpu/intel
|
||||
../../modules/basic
|
||||
../../modules/audio
|
||||
../../modules/samba
|
||||
../../modules/laptop
|
||||
../../modules/docker
|
||||
../../modules/flatpak
|
||||
../../desktop/gnome
|
||||
];
|
||||
|
||||
networking.hostName = "test-vm"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
system.stateVersion = "23.05"; # Did you read the comment?
|
||||
users.users.alice.initialPassword = "test";
|
||||
virtualisation.vmVariant = {
|
||||
# following configuration is added only when building VM with build-vm
|
||||
virtualisation = {
|
||||
memorySize = 2048; # Use 2048MiB memory.
|
||||
cores = 3;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user