1
0
Fork 0
forked from DGNum/lab-infra

Compare commits

..

No commits in common. "e54ef96b2a2fb68ec87c809d4316dcb196d4f3d8" and "055fdb9fcf99ce1c2203aa16775b3c83450e849b" have entirely different histories.

2 changed files with 30 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# TODO: revamp to use the same framework as the other VMs # TODO: revamp to use the same framework as the other VMs
{ pkgs, ... }: { pkgs, inputs, ... }:
let let
address = "129.199.146.101"; address = "129.199.146.101";
@ -9,9 +9,8 @@ in
./_hardware-configuration.nix ./_hardware-configuration.nix
# NOTE: For now, only deploy the bare minimum # NOTE: For now, only deploy the bare minimum
./immich.nix
./nginx.nix
./photoprism.nix ./photoprism.nix
./immich.nix
]; ];
deployment.targetHost = address; deployment.targetHost = address;
@ -34,6 +33,7 @@ in
]; ];
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.defaults.email = "webmaster@nixos.org";
systemd.network = { systemd.network = {
config.routeTables = { config.routeTables = {
@ -53,4 +53,29 @@ in
}; };
}; };
}; };
# TODO: switch to unixsockets if supported
nix = {
settings = {
trusted-users = [
"@wheel"
"root"
"nix-ssh"
];
auto-optimise-store = true;
};
#package = pkgs.nixUnstable;
extraOptions =
let
empty_registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
in
''
experimental-features = nix-command flakes
flake-registry = ${empty_registry}
builders-use-substitutes = true
'';
registry.nixpkgs.flake = inputs.nixpkgs;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
};
} }

View file

@ -1,8 +1,7 @@
{ {
services.immich = { services.immich = {
enable = true; enable = true;
# NOTE: default port changes in a later version # default port: 3001
port = 3001;
machine-learning.enable = true; machine-learning.enable = true;
host = "localhost"; host = "localhost";
}; };
@ -11,6 +10,6 @@
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
serverAliases = [ ]; serverAliases = [ ];
locations."/".proxyPass = "http://localhost:3001/"; locations."/".proxyPass = "http://localhost:2283/";
}; };
} }