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 files host

+28 -17
+2
coredns/ngp.computer.hosts
··· 1 1 192.168.1.3 img.ngp.computer 2 2 192.168.1.3 photos.ngp.computer 3 3 192.168.1.3 misaki.ngp.computer 4 + 192.168.1.3 files.ngp.computer 4 5 5 6 fe80::9ab7:85ff:fe1e:dfe8 img.ngp.computer 6 7 fe80::9ab7:85ff:fe1e:dfe8 photos.ngp.computer 7 8 fe80::9ab7:85ff:fe1e:dfe8 misaki.ngp.computer 9 + fe80::9ab7:85ff:fe1e:dfe8 files.ngp.computer
+3 -3
flake.lock
··· 345 345 }, 346 346 "nixpkgs_3": { 347 347 "locked": { 348 - "lastModified": 1766885793, 349 - "narHash": "sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0=", 348 + "lastModified": 1767047869, 349 + "narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=", 350 350 "owner": "nixos", 351 351 "repo": "nixpkgs", 352 - "rev": "9ef261221d1e72399f2036786498d78c38185c46", 352 + "rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a", 353 353 "type": "github" 354 354 }, 355 355 "original": {
-2
flake.nix
··· 28 28 , ... 29 29 }@inputs: 30 30 let 31 - name = "misaki"; 32 31 system = "x86_64-linux"; 33 32 pkgs = import nixpkgs { 34 33 inherit system; 35 - 36 34 }; 37 35 unstable = import nixpkgs-unstable { 38 36 inherit system;
+23 -12
services.nix
··· 1 1 { config 2 - , lib 3 2 , pkgs 4 3 , unstable 5 4 , ... ··· 285 284 dnsProvider = "porkbun"; 286 285 environmentFile = config.age.secrets.acme.path; 287 286 }; 287 + certs."files.ngp.computer" = { 288 + group = "httpd"; 289 + dnsProvider = "porkbun"; 290 + environmentFile = config.age.secrets.acme.path; 291 + }; 288 292 certs."photos.ngp.computer" = { 289 293 group = "httpd"; 290 294 dnsProvider = "porkbun"; ··· 469 473 alias /srv/shokuhou/pictures/public/$1; 470 474 ''; 471 475 }; 472 - # Don't use this unless you want the contents of this folder to be in the Nix 473 - # Store and only updated when switching 474 - #root = "/srv/shokuhou/pictures/public"; 475 - #extraConfig = '' 476 - # sendfile on; 477 - # sendfile_max_chunk 1m; 478 - # tcp_nopush on; 479 - # root /srv/shokuhou/pictures/public; 480 - # location ~ /.* { 481 - # } 482 - #''; 476 + }; 477 + virtualHosts."files.ngp.computer" = { 478 + forceSSL = true; 479 + enableACME = false; 480 + useACMEHost = "files.ngp.computer"; 481 + acmeRoot = null; 482 + root = null; 483 + extraConfig = '' 484 + sendfile on; 485 + tcp_nopush on; 486 + ''; 487 + locations."/books/" = { 488 + extraConfig = '' 489 + autoindex on; 490 + autoindex_exact_size on; 491 + alias /srv/shokuhou/books/sync/$1; 492 + ''; 493 + }; 483 494 }; 484 495 virtualHosts."jellyfin.packetlost.dev" = { 485 496 forceSSL = true;