Host mssql on server

This commit is contained in:
Lillian Violet 2023-11-24 12:37:55 +01:00
parent 2750e7a65b
commit 5c3c72f39c

View file

@ -108,7 +108,7 @@
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.firewall.allowedTCPPorts = [80 443]; networking.firewall.allowedTCPPorts = [80 443 1443];
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Amsterdam";
@ -152,6 +152,18 @@
nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"]; nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"];
}; };
virtualisation.oci-containers.containers = {
mssql = {
image = "mcr.microsoft.com/mssql/server:2022-latest";
ports = ["1433:1433"];
environment = {
"ACCEPT_EULA" = "Y";
"MSSQL_SA_PASSWORD" = "EbKihNUHg6S$V$qchADFmw!JCm##toc3";
};
volumes = ["/home/lillian/docker/mssql:/data"];
};
};
# Enable completion of system packages by zsh # Enable completion of system packages by zsh
environment.pathsToLink = ["/share/zsh"]; environment.pathsToLink = ["/share/zsh"];