code clean?

This commit is contained in:
2025-10-07 09:47:53 +03:00
parent 4909e3fd2c
commit ec3d9d128d
5 changed files with 39 additions and 55 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
imports = [
../software/beets
../services/node-red.nix
../services/uptime-kuma.nix
./uptime-kuma.nix
./calibre-web.nix
./immich.nix
./miniflux.nix
+3 -8
View File
@@ -21,25 +21,20 @@ in
openFirewall = true;
accelerationDevices = null;
machine-learning.enable = true;
mediaLocation = "/mnt/immich";
mediaLocation = "${xlib.dirs.services-mnt-folder}/immich";
};
};
fileSystems."${config.services.immich.mediaLocation}" = {
device = "${xlib.dirs.immich-folder}";
device = "${xlib.dirs.services-folder}/immich";
options = [
"bind"
#"uid=1000"
#"gid=1000"
#"fmask=0007"
#"dmask=0007"
"nofail"
"x-systemd.device-timeout=0"
];
};
systemd.tmpfiles.rules = [
"z /mnt/immich 0755 immich immich -"
"z ${config.services.immich.mediaLocation} 0755 immich immich -"
];
users.users.immich.extraGroups = [
+6 -25
View File
@@ -31,7 +31,7 @@ in
package = pkgs.nextcloud31;
hostName = "nextcloud.local";
database.createLocally = true;
home = "/mnt/nextcloud";
home = "${xlib.dirs.services-mnt-folder}/nextcloud";
configureRedis = true;
caching = {
redis = true;
@@ -95,10 +95,8 @@ in
};
collabora-online = {
enable = true;
#package = stable.collabora-online;
port = 9980;
settings = {
# Rely on reverse proxy for SSL
server_name = "office.zeroq.ru";
ssl = {
enable = false;
@@ -108,10 +106,6 @@ in
net = {
listen = "0.0.0.0";
post_allow.host = [
# "localhost"
# "nextcloud.zeroq.ru"
# "nextcloud.local"
# "100.64.1.0"
"0.0.0.0"
];
};
@@ -125,7 +119,6 @@ in
};
onlyoffice = {
enable = false;
# package = work.onlyoffice-documentserver;
hostname = "0.0.0.0";
jwtSecretFile = "${inputs.zeroq-credentials}/services/onlyoffice/jwt.txt";
};
@@ -134,15 +127,8 @@ in
fonts.packages = [ work.corefonts ];
networking.hosts = {
# "localhost" = [
# "nextcloud.zeroq.ru"
# "office.zeroq.ru"
# ];
# "0.0.0.0" = [
# "onlyoffice.local"
# ];
};
# networking.hosts = {
# };
systemd.services.nextcloud-config-collabora =
let
@@ -171,21 +157,16 @@ in
};
};
fileSystems."/mnt/nextcloud" = {
device = "${xlib.dirs.nextcloud-folder}";
fileSystems."${config.services.nextcloud.home}" = {
device = "${xlib.dirs.services-folder}/nextcloud";
options = [
"bind"
#"uid=1000"
#"gid=1000"
#"fmask=0007"
#"dmask=0007"
"nofail"
"x-systemd.device-timeout=0"
];
};
systemd.tmpfiles.rules = [
"z /mnt/nextcloud 0750 nextcloud nextcloud -"
"z ${config.services.nextcloud.home} 0750 nextcloud nextcloud -"
];
environment.systemPackages = [
+29
View File
@@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
xlib,
inputs,
...
}:
{
services.uptime-kuma = {
enable = true;
settings = {
PORT = "4001";
HOST = "0.0.0.0";
};
};
systemd.tmpfiles.rules = [
"z ${xlib.dirs.services-mnt-folder}/uptime-kuma 0755 nobody nogroup -"
];
fileSystems."/var/lib/private/uptime-kuma" = {
device = "${xlib.dirs.services-mnt-folder}/uptime-kuma";
options = [
"bind"
"nofail"
];
};
}
-21
View File
@@ -1,21 +0,0 @@
{
config,
lib,
pkgs,
xlib,
inputs,
...
}:
{
services.uptime-kuma = {
enable = true;
settings = {
PORT = "4001";
HOST = "0.0.0.0";
};
};
# systemd.tmpfiles.rules = [
# "z ${xlib.dirs.services-mnt-folder}/node-red 0750 node-red node-red -"
# ];
}