Skip to content

Commit

Permalink
mauville: enable binary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alyraffauf committed Jul 8, 2024
1 parent ee2c828 commit 9579d6f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hosts/mauville/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ in {
file = ../../secrets/lastFM/secret.age;
};

nixCache.file = ../../secrets/nixCache/privKey.age;

spotifyId = {
owner = "navidrome";
file = ../../secrets/spotify/clientId.age;
Expand Down Expand Up @@ -60,6 +62,23 @@ in {
networking.hostName = "mauville";

services = {
ddclient.domains = ["nixcache.${domain}"];
nginx = {
virtualHosts."nixcache.${domain}" = {
enableACME = true;
forceSSL = true;

locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${
toString config.services.nix-serve.port
}";
};
};

nix-serve = {
enable = true;
secretKeyFile = config.age.secrets.nixCache.path;
};

samba = {
enable = true;
openFirewall = true;
Expand Down

0 comments on commit 9579d6f

Please sign in to comment.