1
Fork 0
e11sync/vm.nix

38 lines
703 B
Nix
Raw Normal View History

2024-01-15 23:11:46 +02:00
{
pkgs,
modulesPath,
...
}: {
#e11sync.enable = true;
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";
}