My Nix Configuration
2
fork

Configure Feed

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

[marvin] move some files around and reformat them

dish 75dd969f 9f53b546

+44 -39
+3 -4
hosts/marvin/default.nix
··· 11 11 # keep-sorted start 12 12 ./services/anubis.nix 13 13 ./services/avahi.nix 14 - ./services/booklore.nix 15 14 ./services/bots.nix 15 + ./services/databases.nix 16 16 ./services/gdq-cals.nix 17 17 ./services/git.nix 18 18 ./services/golink.nix 19 19 ./services/grafana.nix 20 20 ./services/immich.nix 21 21 ./services/jellyfin.nix 22 + ./services/library.nix 23 + ./services/mail-archiver.nix 22 24 ./services/matrix.nix 23 - ./services/mail-archiver.nix 24 25 ./services/miniflux.nix 25 - ./services/mysql.nix 26 26 ./services/nextcloud 27 27 ./services/nginx.nix 28 28 ./services/paperless.nix ··· 30 30 ./services/planka.nix 31 31 ./services/pocket-id.nix 32 32 ./services/podman.nix 33 - ./services/postgres.nix 34 33 ./services/prometheus.nix 35 34 ./services/scrutiny.nix 36 35 ./services/shelfmark.nix
+4 -1
hosts/marvin/services/booklore.nix hosts/marvin/services/library.nix
··· 117 117 isSystemUser = true; 118 118 group = "booklore"; 119 119 description = "Booklore service user"; 120 + uid = 940; 120 121 }; 121 - groups.booklore = { }; 122 + groups.booklore = { 123 + gid = 940; 124 + }; 122 125 }; 123 126 # Configure MySQL 124 127 services.mysql = {
+37
hosts/marvin/services/databases.nix
··· 1 + { pkgs, ... }: 2 + { 3 + services = { 4 + postgresql = { 5 + enable = true; 6 + package = pkgs.postgresql_16; 7 + enableJIT = true; 8 + # Settings taken from [PGTune](https://pgtune.leopard.in.ua/) 9 + # https://pgtune.leopard.in.ua/?dbVersion=16&osType=linux&dbType=mixed&cpuNum&totalMemory=16&totalMemoryUnit=GB&connectionNum&hdType=ssd 10 + settings = { 11 + # PGTune Settings 12 + max_connections = "300"; 13 + shared_buffers = "4GB"; 14 + effective_cache_size = "12GB"; 15 + maintenance_work_mem = "1GB"; 16 + checkpoint_completion_target = 0.9; 17 + wal_buffers = "16MB"; 18 + default_statistics_target = 100; 19 + random_page_cost = 1.1; 20 + effective_io_concurrency = 200; 21 + work_mem = "19418kB"; 22 + huge_pages = "off"; 23 + min_wal_size = "1GB"; 24 + max_wal_size = "4GB"; 25 + 26 + max_worker_processes = 16; 27 + max_parallel_workers = 16; 28 + max_parallel_workers_per_gather = 4; 29 + max_parallel_maintenance_workers = 4; 30 + }; 31 + }; 32 + mysql = { 33 + enable = true; 34 + package = pkgs.mariadb; 35 + }; 36 + }; 37 + }
-34
hosts/marvin/services/postgres.nix
··· 1 - { pkgs, ... }: 2 - # let 3 - # cfg = config.services.postgresql; 4 - # in 5 - { 6 - services.postgresql = { 7 - enable = true; 8 - package = pkgs.postgresql_16; 9 - enableJIT = true; 10 - # Settings taken from [PGTune](https://pgtune.leopard.in.ua/) 11 - # https://pgtune.leopard.in.ua/?dbVersion=16&osType=linux&dbType=mixed&cpuNum&totalMemory=16&totalMemoryUnit=GB&connectionNum&hdType=ssd 12 - settings = { 13 - # PGTune Settings 14 - max_connections = "300"; 15 - shared_buffers = "4GB"; 16 - effective_cache_size = "12GB"; 17 - maintenance_work_mem = "1GB"; 18 - checkpoint_completion_target = 0.9; 19 - wal_buffers = "16MB"; 20 - default_statistics_target = 100; 21 - random_page_cost = 1.1; 22 - effective_io_concurrency = 200; 23 - work_mem = "19418kB"; 24 - huge_pages = "off"; 25 - min_wal_size = "1GB"; 26 - max_wal_size = "4GB"; 27 - 28 - max_worker_processes = 16; 29 - max_parallel_workers = 16; 30 - max_parallel_workers_per_gather = 4; 31 - max_parallel_maintenance_workers = 4; 32 - }; 33 - }; 34 - }