feat(photo01): init #4

Merged
cst1 merged 19 commits from cst1/lab-infra:init_photo01 into main 2024-11-22 14:04:37 +01:00
Showing only changes of commit dc2842a807 - Show all commits

View file

@ -9,8 +9,9 @@ in
./_hardware-configuration.nix
# NOTE: For now, only deploy the bare minimum
./photoprism.nix
./immich.nix
./nginx.nix
./photoprism.nix
];
deployment.targetHost = address;
@ -53,29 +54,4 @@ 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}" ];
};
}