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 nix binary cache service to misaki

+33 -9
+12 -4
default-home.nix
··· 98 98 ]; 99 99 100 100 nix = { 101 - settings.experimental-features = [ 102 - "nix-command" 103 - "flakes" 104 - ]; 101 + settings = { 102 + experimental-features = [ 103 + "nix-command" 104 + "flakes" 105 + ]; 106 + substituters = [ 107 + "https://cache.ngp.computer" 108 + ]; 109 + trusted-public-keys = [ 110 + "misaki.packetlost.dev:y5Z/utaVBozpL0UAbUQDWLjpm2sVMOoKzyG76n/167A=" 111 + ]; 112 + }; 105 113 }; 106 114 107 115 programs.fish = {
+2
host-specific/misaki/coredns/ngp.computer.hosts
··· 2 2 192.168.1.3 photos.ngp.computer 3 3 192.168.1.3 misaki.ngp.computer 4 4 192.168.1.3 files.ngp.computer 5 + 192.168.1.3 cache.ngp.computer 5 6 6 7 fe80::9ab7:85ff:fe1e:dfe8 img.ngp.computer 7 8 fe80::9ab7:85ff:fe1e:dfe8 photos.ngp.computer 8 9 fe80::9ab7:85ff:fe1e:dfe8 misaki.ngp.computer 9 10 fe80::9ab7:85ff:fe1e:dfe8 files.ngp.computer 11 + fe80::9ab7:85ff:fe1e:dfe8 cache.ngp.computer
+19 -5
host-specific/misaki/services.nix
··· 284 284 dnsProvider = "porkbun"; 285 285 environmentFile = config.age.secrets.acme.path; 286 286 }; 287 + certs."cache.ngp.computer" = { 288 + group = "httpd"; 289 + dnsProvider = "porkbun"; 290 + environmentFile = config.age.secrets.acme.path; 291 + }; 287 292 certs."photos.ngp.computer" = { 288 293 group = "httpd"; 289 294 dnsProvider = "porkbun"; ··· 344 349 configDir = "/srv/shokuhou/applications/jellyfin/config"; 345 350 }; 346 351 347 - # services.gitea = { 348 - # enable = true; 349 - # user = "git"; 350 - # domain = "git.packetlost.dev"; 351 - # }; 352 + services.gitea = { 353 + enable = false; 354 + user = "git"; 355 + domain = "git.packetlost.dev"; 356 + }; 352 357 353 358 # Litterbox, collect my IRC logs 354 359 systemd = { ··· 496 501 locations."/" = { 497 502 proxyPass = "http://localhost:8096/"; 498 503 }; 504 + }; 505 + virtualHosts."cache.ngp.computer" = { 506 + forceSSL = true; 507 + enableACME = false; 508 + useACMEHost = "cache.ngp.computer"; 509 + acmeRoot = null; 510 + http2 = true; 511 + locations."/".proxyPass = 512 + "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}"; 499 513 }; 500 514 501 515 # give a name to the virtual host. It also becomes the server name.