|
55 | 55 | mpd_pw = { };
|
56 | 56 | mpd_icecast_pw = { };
|
57 | 57 | alertmanager = { };
|
| 58 | + lego-knot-credentials.owner = "acme"; |
58 | 59 | };
|
59 | 60 | imports =
|
60 | 61 | [
|
|
104 | 105 |
|
105 | 106 | networking = {
|
106 | 107 | hostName = "optina";
|
107 |
| - domain = "wedlake.lan"; |
| 108 | + domain = "lan.disasm.us"; |
108 | 109 | hostId = "1768b40b";
|
109 | 110 | interfaces.enp2s0.ipv4.addresses = [{ address = "10.40.33.20"; prefixLength = 24; }];
|
110 | 111 | defaultGateway = "10.40.33.1";
|
111 | 112 | nameservers = [ "10.40.33.1" "8.8.8.8" ];
|
112 | 113 | extraHosts =
|
113 | 114 | ''
|
114 | 115 | 10.233.1.2 rtorrent.optina.local
|
115 |
| - 10.40.33.20 crate.wedlake.lan |
| 116 | + 10.40.33.20 crate.lan.disasm.us |
116 | 117 | '';
|
117 | 118 | nat = {
|
118 | 119 | enable = true;
|
|
157 | 158 | };
|
158 | 159 | };
|
159 | 160 |
|
| 161 | + security.acme.acceptTerms = true; |
| 162 | + security.acme.email = "[email protected]"; |
| 163 | + security.acme.certs."lan.disasm.us" = { |
| 164 | + domain = "*.lan.disasm.us"; |
| 165 | + postRun = "systemctl reload nginx.service"; |
| 166 | + group = "nginx"; |
| 167 | + keyType = "ec384"; |
| 168 | + dnsProvider = "rfc2136"; |
| 169 | + credentialsFile = config.sops.secrets.lego-knot-credentials.path; |
| 170 | + }; |
160 | 171 | security.pki.certificates = [ shared.wedlake_ca_cert ];
|
161 | 172 |
|
162 | 173 | nixpkgs = {
|
|
209 | 220 | home-assistant = {
|
210 | 221 | enable = true;
|
211 | 222 | package = (pkgs.home-assistant.override {
|
212 |
| - extraComponents = [ "sense" "roku" "homekit" "sense_energy" ]; |
| 223 | + extraComponents = [ "sense" "roku" "homekit" ]; |
213 | 224 | }).overrideAttrs (oldAttrs: { doInstallCheck = false; });
|
214 | 225 | config = {
|
215 | 226 | default_config = { };
|
216 | 227 | met = { };
|
217 | 228 | sense = { };
|
| 229 | + roku = { }; |
| 230 | + homekit = { }; |
218 | 231 | };
|
219 | 232 | };
|
220 | 233 | matterbridge = {
|
221 | 234 | enable = true;
|
222 | 235 | configPath = "/etc/nixos/matterbridge.toml";
|
223 | 236 | };
|
224 | 237 | minecraft-bedrock-server.enable = true;
|
225 |
| - #vaultwarden = { |
226 |
| - # enable = true; |
227 |
| - # config = { |
228 |
| - # signupsAllowed = true; |
229 |
| - # domain = "http://optina.wedlake.lan:8085"; |
230 |
| - # }; |
231 |
| - #}; |
| 238 | + vaultwarden = { |
| 239 | + enable = true; |
| 240 | + config = { |
| 241 | + signupsAllowed = false; |
| 242 | + domain = "https://vw.lan.disasm.us"; |
| 243 | + }; |
| 244 | + }; |
232 | 245 | udev.extraRules = ''
|
233 | 246 | ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="74:d4:35:9b:84:62", NAME="enp2s0"
|
234 | 247 | '';
|
|
240 | 253 | extraProperties = ''
|
241 | 254 | offsets.topic.replication.factor = 1
|
242 | 255 | '';
|
243 |
| - hostname = "optina.wedlake.lan"; |
| 256 | + hostname = "optina.lan.disasm.us"; |
244 | 257 | zookeeper = "localhost:2181";
|
245 | 258 | };
|
246 | 259 | elasticsearch = {
|
|
251 | 264 |
|
252 | 265 | kibana = {
|
253 | 266 | enable = false;
|
254 |
| - listenAddress = "optina.wedlake.lan"; |
| 267 | + listenAddress = "optina.lan.disasm.us"; |
255 | 268 | elasticsearch.url = "http://localhost:9200";
|
256 | 269 | };
|
257 | 270 |
|
|
263 | 276 | # web = {
|
264 | 277 | # enable = true;
|
265 | 278 | # listenPort = "8002";
|
266 |
| - # baseURL = "https://hledger.wedlake.lan/"; |
| 279 | + # baseURL = "https://hledger.lan.disasm.us/"; |
267 | 280 | # };
|
268 | 281 | #};
|
269 | 282 |
|
|
280 | 293 | move_metadata_to_field: journal
|
281 | 294 | default_type: journal
|
282 | 295 | output.kafka:
|
283 |
| - hosts: ["optina.wedlake.lan:9092"] |
| 296 | + hosts: ["optina.lan.disasm.us:9092"] |
284 | 297 | topic: KAFKA-LOGSTASH-ELASTICSEARCH
|
285 | 298 | '';
|
286 | 299 | };
|
|
323 | 336 | bitlbee.enable = true;
|
324 | 337 | gitea = {
|
325 | 338 | enable = false;
|
326 |
| - domain = "git.wedlake.lan"; |
| 339 | + domain = "git.lan.disasm.us"; |
327 | 340 | appName = "Personal Git Server";
|
328 | 341 | httpAddress = "127.0.0.1";
|
329 |
| - rootUrl = "https://git.wedlake.lan"; |
| 342 | + rootUrl = "https://git.lan.disasm.us"; |
330 | 343 | httpPort = 3001;
|
331 | 344 | database = {
|
332 | 345 | type = "postgres";
|
|
446 | 459 | };
|
447 | 460 | #unifi = {
|
448 | 461 | # enable = false;
|
449 |
| - # unifiAddress = "https://unifi.wedlake.lan"; |
| 462 | + # unifiAddress = "https://unifi.lan.disasm.us"; |
450 | 463 | # unifiUsername = "prometheus";
|
451 | 464 | # unifiPassword = secrets.unifi_password_ro;
|
452 | 465 | # openFirewall = true;
|
|
461 | 474 | scheme = "http";
|
462 | 475 | path_prefix = "/";
|
463 | 476 | static_configs = [{
|
464 |
| - targets = [ "optina.wedlake.lan:9093" ]; |
| 477 | + targets = [ "optina.lan.disasm.us:9093" ]; |
465 | 478 | }];
|
466 | 479 | }];
|
467 | 480 | rules = [
|
|
613 | 626 | static_configs = [
|
614 | 627 | {
|
615 | 628 | targets = [
|
616 |
| - "portal.wedlake.lan:9100" |
| 629 | + "portal.lan.disasm.us:9100" |
617 | 630 | ];
|
618 | 631 | labels = {
|
619 |
| - alias = "portal.wedlake.lan"; |
| 632 | + alias = "portal.lan.disasm.us"; |
620 | 633 | };
|
621 | 634 | }
|
622 | 635 | {
|
623 | 636 | targets = [
|
624 |
| - "optina.wedlake.lan:9100" |
| 637 | + "optina.lan.disasm.us:9100" |
625 | 638 | ];
|
626 | 639 | labels = {
|
627 |
| - alias = "optina.wedlake.lan"; |
| 640 | + alias = "optina.lan.disasm.us"; |
628 | 641 | };
|
629 | 642 | }
|
630 | 643 | {
|
|
657 | 670 | # "localhost:9130"
|
658 | 671 | # ];
|
659 | 672 | # labels = {
|
660 |
| - # alias = "unifi.wedlake.lan"; |
| 673 | + # alias = "unifi.lan.disasm.us"; |
661 | 674 | # };
|
662 | 675 | # }
|
663 | 676 | # ];
|
|
798 | 811 | nginx = {
|
799 | 812 | enable = true;
|
800 | 813 | virtualHosts = {
|
801 |
| - "netboot.wedlake.lan" = { |
| 814 | + "netboot.lan.disasm.us" = { |
802 | 815 | root = netboot_root;
|
803 | 816 | extraConfig = ''
|
804 | 817 | location ~ [^/]\.php(/|$) {
|
805 | 818 | fastcgi_pass unix:${config.services.phpfpm.pools.mypool.socket};
|
806 | 819 | }
|
807 | 820 | '';
|
808 | 821 | };
|
809 |
| - "hledger.wedlake.lan" = { |
| 822 | + "hass.lan.disasm.us" = { |
| 823 | + useACMEHost = "lan.disasm.us"; |
| 824 | + forceSSL = true; |
| 825 | + locations."/" = { |
| 826 | + proxyPass = "http://optina.lan.disasm.us:8123"; |
| 827 | + extraConfig = '' |
| 828 | + proxy_set_header Host $host; |
| 829 | + proxy_set_header X-Forwarded-Proto $scheme; |
| 830 | + ''; |
| 831 | + }; |
| 832 | + locations."/api/websocket" = { |
| 833 | + proxyPass = "http://optina.lan.disasm.us:8123"; |
| 834 | + extraConfig = '' |
| 835 | + proxy_http_version 1.1; |
| 836 | + proxy_set_header Host $host; |
| 837 | + proxy_set_header X-Forwarded-Proto $scheme; |
| 838 | + proxy_set_header Upgrade $http_upgrade; |
| 839 | + proxy_set_header Connection "Upgrade"; |
| 840 | + ''; |
| 841 | + }; |
| 842 | + }; |
| 843 | + "vw.lan.disasm.us" = { |
| 844 | + useACMEHost = "lan.disasm.us"; |
| 845 | + forceSSL = true; |
| 846 | + locations."/" = { |
| 847 | + proxyPass = "http://optina.lan.disasm.us:8000"; |
| 848 | + extraConfig = '' |
| 849 | + proxy_set_header Host $host; |
| 850 | + proxy_set_header X-Forwarded-Proto $scheme; |
| 851 | + ''; |
| 852 | + }; |
| 853 | + }; |
| 854 | + "hledger.lan.disasm.us" = { |
| 855 | + useACMEHost = "lan.disasm.us"; |
810 | 856 | forceSSL = true;
|
811 |
| - sslCertificate = "/data/ssl/hledger.wedlake.lan.crt"; |
812 |
| - sslCertificateKey = "/data/ssl/hledger.wedlake.lan.key"; |
813 | 857 | locations."/api".extraConfig = ''
|
814 | 858 | proxy_pass http://localhost:8001/api;
|
815 | 859 | proxy_set_header Host $host;
|
|
825 | 869 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
826 | 870 | '';
|
827 | 871 | };
|
828 |
| - "crate.wedlake.lan" = { |
| 872 | + "stg.lan.disasm.us" = { |
| 873 | + useACMEHost = "lan.disasm.us"; |
829 | 874 | forceSSL = true;
|
830 |
| - sslCertificate = "/data/ssl/nginx.crt"; |
831 |
| - sslCertificateKey = "/data/ssl/nginx.key"; |
832 |
| - locations."/".extraConfig = '' |
833 |
| - proxy_pass http://localhost:8089/; |
834 |
| - proxy_set_header Host $host; |
835 |
| - proxy_set_header X-Forwarded-Proto $scheme; |
836 |
| - proxy_set_header X-Real-IP $remote_addr; |
837 |
| - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
838 |
| - ''; |
839 |
| - #locations."/weechat" = { |
840 |
| - # proxyPass = "http://127.0.0.1:9001/weechat"; |
841 |
| - # proxyWebsockets = true; |
842 |
| - # extraConfig = '' |
843 |
| - # proxy_read_timeout 4h; |
844 |
| - # ''; |
845 |
| - #}; |
846 |
| - }; |
847 |
| - "storage.wedlake.lan" = { |
848 |
| - forceSSL = false; |
849 | 875 | root = "/var/storage";
|
850 | 876 | };
|
851 |
| - "unifi.wedlake.lan" = { |
| 877 | + "unifi.lan.disasm.us" = { |
| 878 | + useACMEHost = "lan.disasm.us"; |
852 | 879 | forceSSL = true;
|
853 |
| - sslCertificate = "/data/ssl/unifi.wedlake.lan.crt"; |
854 |
| - sslCertificateKey = "/data/ssl/unifi.wedlake.lan.key"; |
855 | 880 | locations."/".extraConfig = ''
|
856 | 881 | proxy_set_header Referer "";
|
857 | 882 | proxy_pass https://localhost:8443/;
|
|
863 | 888 | proxy_set_header Connection "upgrade";
|
864 | 889 | '';
|
865 | 890 | };
|
866 |
| - "git.wedlake.lan" = { |
867 |
| - forceSSL = true; |
868 |
| - sslCertificate = "/data/ssl/git.wedlake.lan.crt"; |
869 |
| - sslCertificateKey = "/data/ssl/git.wedlake.lan.key"; |
870 |
| - locations."/".extraConfig = '' |
871 |
| - proxy_pass http://localhost:3001/; |
872 |
| - proxy_set_header Host $host; |
873 |
| - proxy_set_header X-Forwarded-Proto $scheme; |
874 |
| - proxy_set_header X-Real-IP $remote_addr; |
875 |
| - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
876 |
| - ''; |
877 |
| - }; |
| 891 | + #"git.lan.disasm.us" = { |
| 892 | + # forceSSL = true; |
| 893 | + # sslCertificate = "/data/ssl/git.lan.disasm.us.crt"; |
| 894 | + # sslCertificateKey = "/data/ssl/git.lan.disasm.us.key"; |
| 895 | + # locations."/".extraConfig = '' |
| 896 | + # proxy_pass http://localhost:3001/; |
| 897 | + # proxy_set_header Host $host; |
| 898 | + # proxy_set_header X-Forwarded-Proto $scheme; |
| 899 | + # proxy_set_header X-Real-IP $remote_addr; |
| 900 | + # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 901 | + # ''; |
| 902 | + #}; |
878 | 903 | };
|
879 | 904 | };
|
880 | 905 |
|
|
0 commit comments