forked from DGNum/lab-infra
Compare commits
3 commits
73741a3f91
...
f35d495073
Author | SHA1 | Date | |
---|---|---|---|
f35d495073 | |||
f6fcdf21a7 | |||
b19fba8f0b |
2 changed files with 4 additions and 16 deletions
|
@ -6,18 +6,16 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix
|
./_hardware-configuration.nix
|
||||||
|
|
||||||
# NOTE: For now, only deploy the bare minimum
|
# NOTE: For now, only deploy the bare minimum
|
||||||
./photoprism.nix
|
./photoprism.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
];
|
];
|
||||||
|
deployment.targetHost = address;
|
||||||
# Bootloader.
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "photoprism";
|
hostName = "photoprism";
|
||||||
|
|
||||||
firewall.allowedTCPPorts = [
|
firewall.allowedTCPPorts = [
|
||||||
22
|
22
|
||||||
80
|
80
|
||||||
|
@ -25,19 +23,11 @@ in
|
||||||
8007
|
8007
|
||||||
];
|
];
|
||||||
firewall.allowedUDPPorts = [ ];
|
firewall.allowedUDPPorts = [ ];
|
||||||
|
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
disko.devices = import ./disko.nix;
|
|
||||||
|
|
||||||
deployment.targetHost = address;
|
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Europe/Paris";
|
time.timeZone = "Europe/Paris";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ neovim ];
|
environment.systemPackages = with pkgs; [ neovim ];
|
||||||
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
|
||||||
|
@ -89,6 +79,4 @@ in
|
||||||
registry.nixpkgs.flake = inputs.nixpkgs;
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,12 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
|
nginx.virtualHosts."photoprism.cgiga.fr" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
serverAliases = [ ];
|
serverAliases = [ ];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString port}/";
|
proxyPass = "http://localhost:2342/";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue