1
Fork 0
e11sync/vm.nix

31 lines
644 B
Nix
Raw Normal View History

2024-01-16 11:41:15 +02:00
{pkgs, ...}: {
2024-01-16 15:38:00 +02:00
e11sync = {
enable = true;
migrateOnStart = true;
2024-01-16 22:48:36 +02:00
secretKeyPath = "unsafe";
2024-01-16 15:38:00 +02:00
};
2024-01-15 23:11:46 +02:00
environment.systemPackages = with pkgs; [
tmux
htop
];
2024-01-16 11:41:15 +02:00
nix.extraOptions = ''experimental-features = nix-command flakes'';
2024-01-15 23:11:46 +02:00
users = {
mutableUsers = false;
users.nixos = {
extraGroups = ["wheel"];
isNormalUser = true;
hashedPassword = "";
};
};
2024-01-16 11:41:15 +02:00
virtualisation.graphics = false;
2024-01-15 23:11:46 +02:00
security.sudo.wheelNeedsPassword = false;
services.getty.autologinUser = "nixos";
networking = {
hostName = "vm";
2024-01-16 11:41:15 +02:00
firewall.allowedTCPPorts = [22 8001];
2024-01-15 23:11:46 +02:00
};
system.stateVersion = "23.11";
}