mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 12:40:44 +03:00
code clean?
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
../software/beets
|
../software/beets
|
||||||
../services/node-red.nix
|
../services/node-red.nix
|
||||||
../services/uptime-kuma.nix
|
./uptime-kuma.nix
|
||||||
./calibre-web.nix
|
./calibre-web.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./miniflux.nix
|
./miniflux.nix
|
||||||
|
|||||||
@@ -21,25 +21,20 @@ in
|
|||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
accelerationDevices = null;
|
accelerationDevices = null;
|
||||||
machine-learning.enable = true;
|
machine-learning.enable = true;
|
||||||
mediaLocation = "/mnt/immich";
|
mediaLocation = "${xlib.dirs.services-mnt-folder}/immich";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."${config.services.immich.mediaLocation}" = {
|
fileSystems."${config.services.immich.mediaLocation}" = {
|
||||||
device = "${xlib.dirs.immich-folder}";
|
device = "${xlib.dirs.services-folder}/immich";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
#"uid=1000"
|
|
||||||
#"gid=1000"
|
|
||||||
#"fmask=0007"
|
|
||||||
#"dmask=0007"
|
|
||||||
"nofail"
|
"nofail"
|
||||||
"x-systemd.device-timeout=0"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"z /mnt/immich 0755 immich immich -"
|
"z ${config.services.immich.mediaLocation} 0755 immich immich -"
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.immich.extraGroups = [
|
users.users.immich.extraGroups = [
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ in
|
|||||||
package = pkgs.nextcloud31;
|
package = pkgs.nextcloud31;
|
||||||
hostName = "nextcloud.local";
|
hostName = "nextcloud.local";
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
home = "/mnt/nextcloud";
|
home = "${xlib.dirs.services-mnt-folder}/nextcloud";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
caching = {
|
caching = {
|
||||||
redis = true;
|
redis = true;
|
||||||
@@ -95,10 +95,8 @@ in
|
|||||||
};
|
};
|
||||||
collabora-online = {
|
collabora-online = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#package = stable.collabora-online;
|
|
||||||
port = 9980;
|
port = 9980;
|
||||||
settings = {
|
settings = {
|
||||||
# Rely on reverse proxy for SSL
|
|
||||||
server_name = "office.zeroq.ru";
|
server_name = "office.zeroq.ru";
|
||||||
ssl = {
|
ssl = {
|
||||||
enable = false;
|
enable = false;
|
||||||
@@ -108,10 +106,6 @@ in
|
|||||||
net = {
|
net = {
|
||||||
listen = "0.0.0.0";
|
listen = "0.0.0.0";
|
||||||
post_allow.host = [
|
post_allow.host = [
|
||||||
# "localhost"
|
|
||||||
# "nextcloud.zeroq.ru"
|
|
||||||
# "nextcloud.local"
|
|
||||||
# "100.64.1.0"
|
|
||||||
"0.0.0.0"
|
"0.0.0.0"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -125,7 +119,6 @@ in
|
|||||||
};
|
};
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = false;
|
enable = false;
|
||||||
# package = work.onlyoffice-documentserver;
|
|
||||||
hostname = "0.0.0.0";
|
hostname = "0.0.0.0";
|
||||||
jwtSecretFile = "${inputs.zeroq-credentials}/services/onlyoffice/jwt.txt";
|
jwtSecretFile = "${inputs.zeroq-credentials}/services/onlyoffice/jwt.txt";
|
||||||
};
|
};
|
||||||
@@ -134,15 +127,8 @@ in
|
|||||||
fonts.packages = [ work.corefonts ];
|
fonts.packages = [ work.corefonts ];
|
||||||
|
|
||||||
|
|
||||||
networking.hosts = {
|
# networking.hosts = {
|
||||||
# "localhost" = [
|
# };
|
||||||
# "nextcloud.zeroq.ru"
|
|
||||||
# "office.zeroq.ru"
|
|
||||||
# ];
|
|
||||||
# "0.0.0.0" = [
|
|
||||||
# "onlyoffice.local"
|
|
||||||
# ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.nextcloud-config-collabora =
|
systemd.services.nextcloud-config-collabora =
|
||||||
let
|
let
|
||||||
@@ -171,21 +157,16 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/nextcloud" = {
|
fileSystems."${config.services.nextcloud.home}" = {
|
||||||
device = "${xlib.dirs.nextcloud-folder}";
|
device = "${xlib.dirs.services-folder}/nextcloud";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
#"uid=1000"
|
|
||||||
#"gid=1000"
|
|
||||||
#"fmask=0007"
|
|
||||||
#"dmask=0007"
|
|
||||||
"nofail"
|
"nofail"
|
||||||
"x-systemd.device-timeout=0"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"z /mnt/nextcloud 0750 nextcloud nextcloud -"
|
"z ${config.services.nextcloud.home} 0750 nextcloud nextcloud -"
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|||||||
@@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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 -"
|
|
||||||
# ];
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user