Initial commit

This commit is contained in:
Michael Smith
2024-07-27 16:28:37 +02:00
parent 3ba0bcd440
commit e2d99b628d
7 changed files with 251 additions and 1 deletions

36
machines/demo/default.nix Normal file
View File

@@ -0,0 +1,36 @@
{pkgs}: {modulesPath, ...}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-vm.nix")
];
config = {
virtualisation = {
memorySize = 8192;
qemu.options = [
"-enable-kvm"
"-vga virtio"
];
};
networking.hostName = "desk-os-demo";
# Localization
time.timeZone = "Europe/Brussels";
i18n.defaultLocale = "en_US.UTF-8";
services.xserver.xkb.layout = "us";
services.xserver.xkb.variant = "dvorak";
services.displayManager.autoLogin = {
enable = true;
user = "demo";
};
security.sudo.wheelNeedsPassword = false;
users.users.demo = {
createHome = true;
isNormalUser = true;
extraGroups = ["networkmanager" "wheel"];
initialPassword = "demo";
};
};
}