From caeedc1d233928e5f183c37adfa210fb25b2b08d Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Fri, 24 Nov 2023 12:37:55 +0100 Subject: [PATCH] Host mssql on server --- nixos/queen/configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/queen/configuration.nix b/nixos/queen/configuration.nix index d799584..3d496bf 100644 --- a/nixos/queen/configuration.nix +++ b/nixos/queen/configuration.nix @@ -108,7 +108,7 @@ # Enable networking networking.networkmanager.enable = true; - networking.firewall.allowedTCPPorts = [80 443]; + networking.firewall.allowedTCPPorts = [80 443 1443]; # Set your time zone. time.timeZone = "Europe/Amsterdam"; @@ -152,6 +152,18 @@ 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 environment.pathsToLink = ["/share/zsh"];