fix: wireguard status for waybar

This commit is contained in:
DACHXY 2025-06-03 11:21:00 +08:00
parent e928d2e4c9
commit cc803cae27
11 changed files with 68 additions and 57 deletions

View file

@ -3,6 +3,7 @@
datadir ? null,
dataBackupPath ? null,
dbBackupPath ? null,
https ? true,
}:
{
config,
@ -42,7 +43,7 @@
package = pkgs.nextcloud31;
configureRedis = true;
hostName = hostname;
https = true;
https = if https then true else false;
datadir = lib.mkIf (datadir != null) datadir;
phpExtraExtensions =
all: with all; [

View file

@ -8,6 +8,10 @@
[
file
man-pages
man-pages-posix
stdmanpages
# Binary cache platform
cachix

View file

@ -0,0 +1,15 @@
{
relayHosts ? [ ],
}:
{
lib,
...
}:
{
services.rustdesk-server = {
enable = lib.mkDefault true;
openFirewall = lib.mkDefault true;
relay.enable = lib.mkDefault false;
signal.relayHosts = relayHosts;
};
}