From fea35336c7684fcdeddfecfe7dd090b8ec9a0304 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:54:11 -0900 Subject: [PATCH] try to start ubuntu --- nixos/firewall.nix | 2 +- nixos/linux.nix | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/nixos/firewall.nix b/nixos/firewall.nix index a2aec50..c32952a 100644 --- a/nixos/firewall.nix +++ b/nixos/firewall.nix @@ -1,3 +1,3 @@ {pkgs, ...}: { - networking.firewall.allowedTCPPorts = [80 22 443 8009]; + networking.firewall.allowedTCPPorts = [80 22 443 8009 222]; } diff --git a/nixos/linux.nix b/nixos/linux.nix index 7284857..78f821b 100644 --- a/nixos/linux.nix +++ b/nixos/linux.nix @@ -110,14 +110,15 @@ in { backend = "docker"; containers = { - "hello" = { - autoStart = true; - image = "nginxdemos/hello"; - #user = "root:jellyfin"; - volumes = [ - ]; - ports = ["8081:80"]; - }; + # Example: + # "hello" = { + # autoStart = true; + # image = "nginxdemos/hello"; + # #user = "root:jellyfin"; + # volumes = [ + # ]; + # ports = ["8081:80"]; + # }; "navidrome" = { autoStart = true; @@ -142,7 +143,6 @@ in { "webdav" = { autoStart = true; image = "dgraziotin/nginx-webdav-nononsense"; - #user = "root:jellyfin"; volumes = [ "/mnt/webdav/data:/data" "/mnt/webdav/config:/config" @@ -158,6 +158,14 @@ in { }; ports = ["8082:80"]; }; + + "ubuntu" = { + autoStart = true; + image = "quineglobal/ubuntu-with-ssh"; + volumes = [ ]; + environment = {}; + ports = ["222:22"]; + }; }; };