This commit is contained in:
@@ -148,7 +148,8 @@
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
inputs.agenix.packages.${system}.agenix
|
inputs.agenix.packages.${system}.agenix
|
||||||
inputs.deploy-rs.packages.${system}.deploy-rs
|
inputs.deploy-rs.packages.${system}.deploy-rs
|
||||||
] ++ self.checks.${system}.pre-commit-check.enabledPackages;
|
]
|
||||||
|
++ self.checks.${system}.pre-commit-check.enabledPackages;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -42,9 +42,7 @@
|
|||||||
];
|
];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8081";
|
proxyPass = "http://localhost:8081";
|
||||||
extraConfig =
|
extraConfig = proxyConfig + ''
|
||||||
proxyConfig
|
|
||||||
+ ''
|
|
||||||
# Disable proxy buffering for better streaming response from models
|
# Disable proxy buffering for better streaming response from models
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
||||||
@@ -63,8 +61,7 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig =
|
extraConfig = ''
|
||||||
''
|
|
||||||
# Proxy JellySearch first
|
# Proxy JellySearch first
|
||||||
if ($arg_searchTerm) {
|
if ($arg_searchTerm) {
|
||||||
proxy_pass http://localhost:5000;
|
proxy_pass http://localhost:5000;
|
||||||
|
@@ -40,8 +40,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
age.secrets =
|
age.secrets = {
|
||||||
{
|
|
||||||
"passwords/services/coturn/static-auth-secret" = {
|
"passwords/services/coturn/static-auth-secret" = {
|
||||||
file = "${inputs.secrets}/passwords/services/coturn/static-auth-secret.age";
|
file = "${inputs.secrets}/passwords/services/coturn/static-auth-secret.age";
|
||||||
owner = "turnserver";
|
owner = "turnserver";
|
||||||
|
@@ -63,8 +63,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts =
|
services.nginx.virtualHosts = {
|
||||||
{
|
|
||||||
"${matrixSubdomain}" = {
|
"${matrixSubdomain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
@@ -176,8 +175,7 @@ in
|
|||||||
);
|
);
|
||||||
|
|
||||||
services.postgresql = lib.mkIf usePostgresql {
|
services.postgresql = lib.mkIf usePostgresql {
|
||||||
ensureUsers =
|
ensureUsers = [
|
||||||
[
|
|
||||||
{
|
{
|
||||||
name = "matrix-synapse";
|
name = "matrix-synapse";
|
||||||
ensureDBOwnership = true;
|
ensureDBOwnership = true;
|
||||||
@@ -191,8 +189,7 @@ in
|
|||||||
name = "mautrix-whatsapp";
|
name = "mautrix-whatsapp";
|
||||||
ensureDBOwnership = true;
|
ensureDBOwnership = true;
|
||||||
});
|
});
|
||||||
ensureDatabases =
|
ensureDatabases = [
|
||||||
[
|
|
||||||
"matrix-synapse"
|
"matrix-synapse"
|
||||||
]
|
]
|
||||||
++ (lib.optional bridges.signal "mautrix-signal")
|
++ (lib.optional bridges.signal "mautrix-signal")
|
||||||
@@ -216,6 +213,7 @@ in
|
|||||||
};
|
};
|
||||||
mute_bridging = true;
|
mute_bridging = true;
|
||||||
};
|
};
|
||||||
} // commonBridgeSettings "mautrix-whatsapp";
|
}
|
||||||
|
// commonBridgeSettings "mautrix-whatsapp";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -82,8 +82,7 @@ in
|
|||||||
maxSize = "100m";
|
maxSize = "100m";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualHosts =
|
virtualHosts = {
|
||||||
{
|
|
||||||
## Static sites
|
## Static sites
|
||||||
"chat.ai.vimium.com" = {
|
"chat.ai.vimium.com" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
@@ -24,9 +24,7 @@ libcamera.overrideAttrs (old: {
|
|||||||
./patches/libcamera-no-timeout.patch
|
./patches/libcamera-no-timeout.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch =
|
postPatch = old.postPatch + ''
|
||||||
old.postPatch
|
|
||||||
+ ''
|
|
||||||
patchShebangs src/py/libcamera
|
patchShebangs src/py/libcamera
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@@ -20,8 +20,7 @@ let
|
|||||||
concatMapAttrsStringSep =
|
concatMapAttrsStringSep =
|
||||||
sep: f: attrs:
|
sep: f: attrs:
|
||||||
concatStringsSep sep (attrValues (mapAttrs f attrs));
|
concatStringsSep sep (attrValues (mapAttrs f attrs));
|
||||||
globalVariables =
|
globalVariables = {
|
||||||
{
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
GDK_BACKEND = "wayland";
|
GDK_BACKEND = "wayland";
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
@@ -42,7 +42,8 @@ in
|
|||||||
./common/pass.nix
|
./common/pass.nix
|
||||||
./common/shell.nix
|
./common/shell.nix
|
||||||
./common/ssh.nix
|
./common/ssh.nix
|
||||||
] ++ optional (builtins.pathExists hostFile) hostFile;
|
]
|
||||||
|
++ optional (builtins.pathExists hostFile) hostFile;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
username = name;
|
username = name;
|
||||||
|
Reference in New Issue
Block a user