@cryptotaxi247 / infra-1 / commits / d8f19c3c

caliban: fix the nixpkgs-swh expression

Antoine Eiche committed Sep 9, 2025 at 22:55 UTC d8f19c3c076beb2cf343c4c6891bbe4fe660e050
1 file changed +15 -20
non-critical-infra/hosts/caliban/nixpkgs-swh.nix
+15 -20
@@ -1,29 +1,24 @@
1 { inputs, config, ... }:
2 -let
3 - cfg = config;
4 -in
2 {
3 imports = [
4 inputs.nixpkgs-swh.nixosModules.nixpkgs-swh
5 ];
9 - config = {
10 - services = {
11 - nixpkgs-swh = {
12 - enable = true;
13 - };
14 - nginx = {
15 - enable = true;
16 - virtualHosts = {
17 - "nixpkgs-swh.nixos.org" = {
18 - enableACME = true;
19 - forceSSL = true;
6 + services = {
7 + nixpkgs-swh = {
8 + enable = true;
9 + };
10 + nginx = {
11 + enable = true;
12 + virtualHosts = {
13 + "nixpkgs-swh.nixos.org" = {
14 + enableACME = true;
15 + forceSSL = true;
16
21 - locations."/" = {
22 - root = cfg.services.nixpkgs-swh.outputDir;
23 - extraConfig = ''
24 - autoindex on;
25 - '';
26 - };
17 + locations."/" = {
18 + root = config.services.nixpkgs-swh.outputDir;
19 + extraConfig = ''
20 + autoindex on;
21 + '';
22 };
23 };
24 };