From f35d4950730f55dedc1af1f86bea883b12dab86f Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Thu, 21 Nov 2024 19:02:40 +0100 Subject: [PATCH] fix(photo01): nginx invocation --- machines/photo01/_configuration.nix | 14 +------------- machines/photo01/photoprism.nix | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/machines/photo01/_configuration.nix b/machines/photo01/_configuration.nix index a2bc088..2333eaa 100644 --- a/machines/photo01/_configuration.nix +++ b/machines/photo01/_configuration.nix @@ -12,12 +12,10 @@ in ./photoprism.nix ./immich.nix ]; - - # Bootloader. + deployment.targetHost = address; networking = { hostName = "photoprism"; - firewall.allowedTCPPorts = [ 22 80 @@ -25,19 +23,11 @@ in 8007 ]; firewall.allowedUDPPorts = [ ]; - useNetworkd = true; }; - disko.devices = import ./disko.nix; - - deployment.targetHost = address; - - # Set your time zone. time.timeZone = "Europe/Paris"; - environment.systemPackages = with pkgs; [ neovim ]; - users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270" @@ -89,6 +79,4 @@ in registry.nixpkgs.flake = inputs.nixpkgs; nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; }; - - system.stateVersion = "24.05"; } diff --git a/machines/photo01/photoprism.nix b/machines/photo01/photoprism.nix index e589e93..644e406 100644 --- a/machines/photo01/photoprism.nix +++ b/machines/photo01/photoprism.nix @@ -41,7 +41,7 @@ ]; }; - services.nginx.virtualHosts."photoprism.cgiga.fr" = { + nginx.virtualHosts."photoprism.cgiga.fr" = { enableACME = true; forceSSL = true; serverAliases = [ ];