Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add influxdb2 service

+70
+2
host-specific/misaki/coredns/ngp.computer.hosts
··· 5 5 192.168.1.3 cache.ngp.computer 6 6 192.168.1.3 id.ngp.computer 7 7 192.168.1.3 coder.ngp.computer 8 + 192.168.1.3 stats.ngp.computer 8 9 192.168.1.6 odin.ngp.computer 9 10 10 11 fe80::9ab7:85ff:fe1e:dfe8 img.ngp.computer ··· 14 15 fe80::9ab7:85ff:fe1e:dfe8 cache.ngp.computer 15 16 fe80::9ab7:85ff:fe1e:dfe8 id.ngp.computer 16 17 fe80::9ab7:85ff:fe1e:dfe8 coder.ngp.computer 18 + fe80::9ab7:85ff:fe1e:dfe8 stats.ngp.computer 17 19 fe80::3af7:cdff:fec7:54f odin.ngp.computer
+43
host-specific/misaki/services.nix
··· 183 183 }; 184 184 }; 185 185 }; 186 + age.secrets.influxdb-admin-password = { 187 + file = ../../secrets/influxdb-admin-password.age; 188 + owner = "influxdb2"; 189 + group = "influxdb2"; 190 + mode = "600"; 191 + }; 192 + age.secrets.influxdb-admin-token = { 193 + file = ../../secrets/influxdb-admin-token.age; 194 + owner = "influxdb2"; 195 + group = "influxdb2"; 196 + mode = "600"; 197 + }; 198 + age.secrets.influxdb-user-password = { 199 + file = ../../secrets/influxdb-user-password.age; 200 + owner = "influxdb2"; 201 + group = "influxdb2"; 202 + mode = "600"; 203 + }; 204 + services.influxdb2 = { 205 + enable = true; 206 + provision = { 207 + enable = true; 208 + initialSetup = { 209 + organization = "ngp"; 210 + bucket = "home-assistant"; 211 + username = "admin"; 212 + retention = 31536000; # 1 year in seconds 213 + passwordFile = config.age.secrets.influxdb-admin-password.path; 214 + tokenFile = config.age.secrets.influxdb-admin-token.path; 215 + }; 216 + users.noah = { 217 + passwordFile = config.age.secrets.influxdb-user-password.path; 218 + }; 219 + }; 220 + }; 186 221 187 222 # Containers and VMs 188 223 virtualisation = { ··· 485 520 "jellyfin.packetlost.dev" 486 521 "id.ngp.computer" 487 522 "coder.ngp.computer" 523 + "stats.ngp.computer" 488 524 ] 489 525 (_: { 490 526 group = "httpd"; ··· 755 791 # This services runs on Odin 756 792 locations."/".proxyPass = "http://192.168.1.6:3000/"; 757 793 locations."/".proxyWebsockets = true; 794 + }; 795 + virtualHosts."stats.ngp.computer" = { 796 + forceSSL = true; 797 + enableACME = true; 798 + acmeRoot = null; 799 + http2 = true; 800 + locations."/".proxyPass = "http://localhost:8086/"; 758 801 }; 759 802 760 803 # give a name to the virtual host. It also becomes the server name.
+11
secrets/influxdb-admin-password.age
··· 1 + age-encryption.org/v1 2 + -> ssh-ed25519 e6zq8g oebvKXg94jlM3dXburYM+vBbfvTRmNc0tiNj7iDCc0Q 3 + 77pJ6UyU7dGj0J6yeACno7BAcSFcKp8hUb11ZUnYmPY 4 + -> ssh-ed25519 QBbeMw MlTziJArfQdPcxx4UXsQdUqP3UGlRHzluX9p9HNsmj0 5 + Ya6nFsu+GiSYgrfaYK8noHKkl2HhKSxH7WqEfTA1+9g 6 + -> ssh-ed25519 Wv0Urw /JqzDFissM7lZx65BcH6TuCyw4s4ss9gYwngVWioklw 7 + qQJcbirf67x0RCtqSJE8gPc+/pMPRvos0+9zD4R+/gE 8 + -> ssh-ed25519 WVNCXA NymhSvbjBUN/wFaOXyYpaLihvgjhlBSSnwdNud1BRBM 9 + 4St89BUqt3+qPB2cxlzcs7exUMMVA8E6MYWgidQtU7Q 10 + --- JxfDbEe4ps2S4NsacXkiFE+4pxGIXLieDVrhdorIdds 11 + �����Ⓟ]���]�����1爦��66C�n��������Ƣrt�d�V
secrets/influxdb-admin-token.age

This is a binary file and will not be displayed.

+11
secrets/influxdb-user-password.age
··· 1 + age-encryption.org/v1 2 + -> ssh-ed25519 e6zq8g fZft50pWVRJhNfs9GvtdZwvFtyLPa/gtD8ZNhxzGsjs 3 + /FBg5s2yo9CPp7D1FDBLT2SW6Yql0jEzph27lMyQyDc 4 + -> ssh-ed25519 QBbeMw TaFeGg07V4Dxna+sQ/oqSR4HSSbkdCVwdaMxZth7nlo 5 + 3XXqBoWeH3q+IUIRwyfDCijuJ1vUEtRvt8SFtJXBxjc 6 + -> ssh-ed25519 Wv0Urw 3vWvtFCUwzyH1uU364LNCHjBvuLQ84upkT71nIZOfWE 7 + AzxoMLEkI+JEXYBMZH3RioPXIoxC0viIaixr6hy6lic 8 + -> ssh-ed25519 WVNCXA 2+DZ200XxIklYSbNkETGq/mrc3ixR2pJuUmTjurjtiA 9 + fXOIFDuLt9HBYeLIv+sR+NQa+sfujXZWpQHTZUSbMVo 10 + --- 68drSDx9YjBdavSQw6HKutXSC3d6Hp5sOASLJX7pxuE 11 + ��x׶ΰ .H��l�(��v^�����k)��u�=�^6��R���}���
+3
secrets/secrets.nix
··· 34 34 "pocket-id-encryption-key.age".publicKeys = [ misaki ] ++ noah; 35 35 "coder-client-secret.age".publicKeys = [ odin ] ++ noah; 36 36 "github-actions-token.age".publicKeys = [ odin ] ++ noah; 37 + "influxdb-user-password.age".publicKeys = [ misaki ] ++ noah; 38 + "influxdb-admin-password.age".publicKeys = [ misaki ] ++ noah; 39 + "influxdb-admin-token.age".publicKeys = [ misaki ] ++ noah; 37 40 }