feat: add SSH key, correct photoprism bind address

This commit is contained in:
Constantin Gierczak--Galle 2024-10-09 17:06:24 +02:00
parent 8f0bb857d2
commit 5b36d052ed
No known key found for this signature in database
3 changed files with 8 additions and 6 deletions

View file

@ -26,12 +26,13 @@
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
# TODO: add cst1's SSH key
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
];
security.acme.acceptTerms = true;
security.acme.defaults.email = "webmaster@nixos.org";
# TODO: open the right ports
networking.firewall.allowedTCPPorts = [
80
443

View file

@ -46,7 +46,7 @@
];
extraModules = [ inputs.colmena.nixosModules.deploymentOptions ];
}
) { hashes = import ./configuration.nix; };
) { photoprism = import ./configuration.nix; };
colmena = {
meta = {

View file

@ -10,10 +10,11 @@
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
};
# TODO: public web address
address = "photoprism.what?";
originalsPath = "/photoprism/photos";
importPath = "/photoprism/imports";
# TODO: add admin password file (agenix?)
passwordFile = "";
address = "localhost";
passwordFile = "/passwords/photoprism";
};
}