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 23:50:59 +02:00
|
|
|
vhost = ":8001";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
globalConfig = ''
|
|
|
|
http_port 8001
|
|
|
|
auto_https off
|
|
|
|
debug
|
|
|
|
'';
|
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 23:54:24 +02:00
|
|
|
virtualisation = {
|
|
|
|
graphics = false;
|
|
|
|
forwardPorts = [
|
|
|
|
{
|
|
|
|
from = "host";
|
|
|
|
host.port = 8001;
|
|
|
|
guest.port = 8001;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
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";
|
|
|
|
}
|