|
18 | 18 | }; |
19 | 19 |
|
20 | 20 | outputs = |
21 | | - { self |
22 | | - , agenix |
23 | | - , deploy-rs |
24 | | - , nixos-configs |
25 | | - , nixpkgs |
26 | | - , strykeforce |
27 | | - , ... |
| 21 | + { |
| 22 | + self, |
| 23 | + agenix, |
| 24 | + deploy-rs, |
| 25 | + nixos-configs, |
| 26 | + nixpkgs, |
| 27 | + strykeforce, |
| 28 | + ... |
28 | 29 | }: |
29 | 30 | let |
30 | 31 | system = "x86_64-linux"; |
|
53 | 54 | ./rclone.nix |
54 | 55 | agenix.nixosModules.default |
55 | 56 | strykeforce.nixosModules.default |
56 | | - ({ config, pkgs, ... }: { |
57 | | - age.secrets.stryker_website_secrets = { |
58 | | - file = ./strykeforce_website_secrets.age; |
59 | | - }; |
| 57 | + ( |
| 58 | + { config, pkgs, ... }: |
| 59 | + { |
| 60 | + age.secrets.stryker_website_secrets = { |
| 61 | + file = ./strykeforce_website_secrets.age; |
| 62 | + }; |
60 | 63 |
|
61 | | - environment.systemPackages = with pkgs; [ |
62 | | - goaccess |
63 | | - redli |
64 | | - strykeforce-manage |
65 | | - ]; |
| 64 | + environment.systemPackages = with pkgs; [ |
| 65 | + goaccess |
| 66 | + redli |
| 67 | + strykeforce-manage |
| 68 | + ]; |
66 | 69 |
|
67 | | - strykeforce.services.website = { |
68 | | - inherit enable; |
69 | | - settingsModule = "website.settings.production"; |
70 | | - }; |
| 70 | + strykeforce.services.website = { |
| 71 | + inherit enable; |
| 72 | + settingsModule = "website.settings.production"; |
| 73 | + secrets = [ config.age.secrets.stryker_website_secrets.path ]; |
| 74 | + }; |
71 | 75 |
|
72 | | - services.postgresql = { |
73 | | - inherit enable; |
74 | | - package = pkgs.postgresql_15; |
75 | | - }; |
| 76 | + services.postgresql = { |
| 77 | + inherit enable; |
| 78 | + package = pkgs.postgresql_15; |
| 79 | + }; |
76 | 80 |
|
77 | | - services.postgresqlBackup = { |
78 | | - inherit enable; |
79 | | - databases = [ "strykeforce" ]; |
80 | | - pgdumpOptions = "--clean"; |
81 | | - }; |
| 81 | + services.postgresqlBackup = { |
| 82 | + inherit enable; |
| 83 | + databases = [ "strykeforce" ]; |
| 84 | + pgdumpOptions = "--clean"; |
| 85 | + }; |
82 | 86 |
|
83 | | - security.acme.acceptTerms = true; |
84 | | - security.acme.defaults.email = "[email protected]"; |
85 | | - }) |
| 87 | + security.acme.acceptTerms = true; |
| 88 | + security.acme.defaults.email = "[email protected]"; |
| 89 | + } |
| 90 | + ) |
86 | 91 | ]; |
87 | 92 | }; |
88 | 93 |
|
89 | | - |
90 | 94 | deploy.nodes = |
91 | 95 | let |
92 | 96 | sshUser = "root"; |
|
0 commit comments