50 lines
928 B
Nix
50 lines
928 B
Nix
{pkgs, ...}: {
|
|
e11sync = {
|
|
enable = true;
|
|
migrateOnStart = true;
|
|
secretKeyPath = "unsafe";
|
|
vhost = ":8001";
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
globalConfig = ''
|
|
http_port 8001
|
|
auto_https off
|
|
debug
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
tmux
|
|
htop
|
|
];
|
|
|
|
nix.extraOptions = ''experimental-features = nix-command flakes'';
|
|
users = {
|
|
mutableUsers = false;
|
|
users.nixos = {
|
|
extraGroups = ["wheel"];
|
|
isNormalUser = true;
|
|
hashedPassword = "";
|
|
};
|
|
};
|
|
virtualisation = {
|
|
graphics = false;
|
|
forwardPorts = [
|
|
{
|
|
from = "host";
|
|
host.port = 8001;
|
|
guest.port = 8001;
|
|
}
|
|
];
|
|
};
|
|
security.sudo.wheelNeedsPassword = false;
|
|
services.getty.autologinUser = "nixos";
|
|
networking = {
|
|
hostName = "vm";
|
|
firewall.allowedTCPPorts = [22 8001];
|
|
};
|
|
system.stateVersion = "23.11";
|
|
}
|