From e17066f6800299534ad48051dd30c3ee8a34b9bb Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 2 Jan 2025 16:03:43 +0200 Subject: [PATCH] Updated wakapi with comments and removed unused languages --- nixosModules/wakapi.nix | 5 ++++- nixosModules/wakapi.yml | 8 +------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/nixosModules/wakapi.nix b/nixosModules/wakapi.nix index 26e5e53..2c93ce6 100644 --- a/nixosModules/wakapi.nix +++ b/nixosModules/wakapi.nix @@ -44,7 +44,7 @@ wantedBy = [ "multi-user.target" ]; script = '' - cd + cd # Important so the cwd is /home/wakapi echo "Using config: ${toString ./wakapi.yml}" ${pkgs.wakapi}/bin/wakapi -config ${toString ./wakapi.yml} ''; @@ -52,6 +52,8 @@ serviceConfig = { User = "wakapi"; Group = "wakapi"; + + # Hardening ProtectHostname = true; ProtectKernelLogs = true; ProtectKernelModules = true; @@ -66,6 +68,7 @@ RestrictNamespaces = true; RestrictRealtime = true; RestrictSUIDSGID = true; + Restart = "always"; }; }; diff --git a/nixosModules/wakapi.yml b/nixosModules/wakapi.yml index 45f79c1..2340574 100644 --- a/nixosModules/wakapi.yml +++ b/nixosModules/wakapi.yml @@ -32,12 +32,6 @@ app: max_inactive_months: 12 # maximum months of inactivity before deleting user accounts warm_caches: true # whether to run some initial cache warming upon startup custom_languages: - vue: Vue - jsx: JSX - tsx: TSX - cjs: JavaScript - ipynb: Python - svelte: Svelte astro: Astro # url template for user avatar images (to be used with services like gravatar or dicebear) @@ -96,7 +90,7 @@ subscriptions: standard_price_id: mail: - enabled: false # whether to enable mails (used for password resets, reports, etc.) + enabled: false # whether to enable mails (used for password resets, reports, etc.) provider: smtp # method for sending mails, currently one of ['smtp'] sender: Wakapi