Fixed server

This commit is contained in:
Aleksandr Lebedev 2025-04-03 14:58:02 +00:00
parent 0af6964b53
commit a337a12561

View file

@ -21,7 +21,7 @@
./hardware.nix ./hardware.nix
./networking.nix ./networking.nix
]; ];
options.services.conduwuit.settings.global.database_path = lib.mkOption { apply = old: "/persist/conduwuit/";}; #options.services.conduwuit.settings.global.database_path = lib.mkOption { apply = old: "/persist/conduwuit/";};
config = { config = {
home-manager.users = lib.mkForce {}; home-manager.users = lib.mkForce {};
stylix.image = ../../modules/hyprland/wallpaper.jpg; stylix.image = ../../modules/hyprland/wallpaper.jpg;
@ -95,18 +95,13 @@ users = {
}; };
}; };
extraEnvironment = { extraEnvironment = {
CONDUWUIT_REGISTRATION_TOKEN = "IActuallyLoveNixOSItIs1488TimesBetterThanArch!"; CONDUWUIT_REGISTRATION_TOKEN = "TIebWOivZIx7oCxiX9FgMlxF8s6sTI1ppStDy3U3Ypm0fEmiJgOD8ppO1X6"; #nix shell nixpkgs#openssl -c openssl rand -base64 48 | tr -d '/+' | cut -c1-64
#CONDUWUIT_REGISTRATION_TOKEN_FILE = ''"${config.sops.secrets."services/conduwuit".path}"''; #CONDUWUIT_REGISTRATION_TOKEN_FILE = ''"${config.sops.secrets."services/conduwuit".path}"'';
CONDUWUIT_NEW_USER_DISPLAYNAME_SUFFIX = "🐝"; CONDUWUIT_NEW_USER_DISPLAYNAME_SUFFIX = "🐝";
CONDUWUIT_REQUIRE_AUTH_FOR_PROFILE_REQUESTS = "true"; CONDUWUIT_REQUIRE_AUTH_FOR_PROFILE_REQUESTS = "true";
CONDUWUIT_ALLOW_LOCAL_PRESENCE = "true"; CONDUWUIT_ALLOW_LOCAL_PRESENCE = "true";
}; };
}; };
systemd.services.conduwuit.serviceConfig = {
DynamicUser = lib.mkForce false;
StateDirectory = lib.mkForce "/persist/conduwuit";
RuntimeDirectory = lib.mkForce "/persist/conduwuit/runtime";
};
services.nginx.enable = true; services.nginx.enable = true;
services.nginx = { services.nginx = {