forked from DGNum/lab-infra
Compare commits
No commits in common. "f35d4950730f55dedc1af1f86bea883b12dab86f" and "73741a3f9130b1268de8085cebea49cba0d41e89" have entirely different histories.
f35d495073
...
73741a3f91
2 changed files with 16 additions and 4 deletions
|
@ -6,16 +6,18 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./_hardware-configuration.nix
|
||||
./hardware.nix
|
||||
|
||||
# NOTE: For now, only deploy the bare minimum
|
||||
./photoprism.nix
|
||||
./immich.nix
|
||||
];
|
||||
deployment.targetHost = address;
|
||||
|
||||
# Bootloader.
|
||||
|
||||
networking = {
|
||||
hostName = "photoprism";
|
||||
|
||||
firewall.allowedTCPPorts = [
|
||||
22
|
||||
80
|
||||
|
@ -23,11 +25,19 @@ 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"
|
||||
|
@ -79,4 +89,6 @@ in
|
|||
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
@ -41,12 +41,12 @@
|
|||
];
|
||||
};
|
||||
|
||||
nginx.virtualHosts."photoprism.cgiga.fr" = {
|
||||
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverAliases = [ ];
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:2342/";
|
||||
proxyPass = "http://localhost:${toString port}/";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue