apu: add invidious

This commit is contained in:
Joakim Repomaa
2025-03-30 20:10:19 +03:00
parent 5c5f3dd964
commit 0ecfaf4d3c
5 changed files with 38 additions and 9 deletions

View File

@@ -272,18 +272,30 @@
}; };
}; };
services.webserver = { services = {
enable = true; webserver = {
acme.dnsChallenge = true; enable = true;
vHosts."koti.repomaa.com" = { acme.dnsChallenge = true;
proxyBuffering = false; vHosts."koti.repomaa.com" = {
locations."/".proxyPort = 8123; proxyBuffering = false;
locations."/".proxyPort = 8123;
};
};
invidious = {
enable = true;
subdomain = "vid";
}; };
}; };
networking.nftables.enable = true; security.acme.defaults.environmentFile = config.age.secrets.hetzner.path;
networking.firewall.enable = true;
networking.useDHCP = false; networking = {
nftables.enable = true;
firewall.enable = true;
useDHCP = false;
domain = "repomaa.com";
};
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View File

@@ -6,6 +6,7 @@ in
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./configuration.nix ./configuration.nix
./secrets.nix
nixos-hardware.nixosModules.pcengines-apu nixos-hardware.nixosModules.pcengines-apu
]; ];
} }

15
hosts/apu/secrets.nix Normal file
View File

@@ -0,0 +1,15 @@
{ lib, ... }:
{
age.secrets = lib.listToAttrs (
map
(secret: {
name = secret;
value = {
file = ../../secrets/${secret}.age;
};
})
[
"hetzner"
]
);
}

BIN
secrets/hetzner.age Normal file

Binary file not shown.

View File

@@ -36,4 +36,5 @@ in
"mosquitto/mokkimaatti.age".publicKeys = users ++ [ freun-dev ]; "mosquitto/mokkimaatti.age".publicKeys = users ++ [ freun-dev ];
"gitlab-runner/default.age".publicKeys = users ++ [ freun-dev ]; "gitlab-runner/default.age".publicKeys = users ++ [ freun-dev ];
"gitlab-runner/docker.age".publicKeys = users ++ [ freun-dev ]; "gitlab-runner/docker.age".publicKeys = users ++ [ freun-dev ];
"hetzner.age".publicKeys = users ++ [ apu ];
} }