2024-01-15 23:11:46 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-15 23:41:15 +02:00
|
|
|
e11sync.enable = true;
|
2024-01-15 23:11:46 +02:00
|
|
|
|
|
|
|
imports = [(modulesPath + "/virtualisation/qemu-vm.nix")];
|
|
|
|
virtualisation.graphics = false;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
tmux
|
|
|
|
htop
|
|
|
|
];
|
|
|
|
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
trusted-users = vm
|
|
|
|
'';
|
|
|
|
users = {
|
|
|
|
mutableUsers = false;
|
|
|
|
users.nixos = {
|
|
|
|
extraGroups = ["wheel"];
|
|
|
|
isNormalUser = true;
|
|
|
|
hashedPassword = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
services.getty.autologinUser = "nixos";
|
|
|
|
networking = {
|
|
|
|
hostName = "vm";
|
|
|
|
firewall = {
|
|
|
|
allowedTCPPorts = [8001];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|