monolith: fix nix serve

This commit is contained in:
lelgenio 2023-01-25 14:02:44 -03:00
parent ebe532daec
commit 18357e7779
5 changed files with 5 additions and 2 deletions

Binary file not shown.

View file

@ -5,4 +5,5 @@ in
"rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
"monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
"lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ];
"monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ];
}

View file

@ -2,5 +2,5 @@
./switch \
--option extra-substituters "http://nixcache.lelgenio.1337.cx:5000" \
--option extra-trusted-public-keys "nixcache.lelgenio.1337.cx:zxCfx7S658llDgAUG0JVyNrlAdFVvPniSdDOkvfTPS8=" \
--option extra-trusted-public-keys "nixcache.lelgenio.1337.cx:HZCwDaM39BOF+MLuviMQTUrz3rBWLTLV9H+GV4zcxVI=" \
"$@"

View file

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: {
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
secretKeyFile = config.age.secrets.monolith-nix-serve-privkey.path;
};
}

View file

@ -6,5 +6,7 @@
../secrets/monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.file =
../secrets/rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
secrets.monolith-nix-serve-privkey.file =
../secrets/monolith-nix-serve-privkey.age;
};
}