mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
systemd-mounts...
lix frozen-removed, rovr frozen-removed
This commit is contained in:
@@ -69,13 +69,10 @@ let
|
|||||||
};
|
};
|
||||||
"${xlib.dirs.services-mnt-folder}" = {
|
"${xlib.dirs.services-mnt-folder}" = {
|
||||||
device = "${xlib.dirs.services-folder}";
|
device = "${xlib.dirs.services-folder}";
|
||||||
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"nofail"
|
"nofail"
|
||||||
# "uid=1000"
|
|
||||||
# "gid=1000"
|
|
||||||
# "fmask=0000"
|
|
||||||
# "dmask=0000"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
system.nixos.label = "default";
|
system.nixos.label = "default";
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.lixPackageSets.stable.lix;
|
# package = pkgs.lixPackageSets.stable.lix; # maybe unstable
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
nixPath = [ "nixpkgs=flake:nixpkgs" ];
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ in
|
|||||||
|
|
||||||
fileSystems."/var/lib/calibre-web" = {
|
fileSystems."/var/lib/calibre-web" = {
|
||||||
device = "${xlib.dirs.services-mnt-folder}/calibre-web";
|
device = "${xlib.dirs.services-mnt-folder}/calibre-web";
|
||||||
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"nofail"
|
"nofail"
|
||||||
|
|||||||
@@ -25,14 +25,6 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# fileSystems."${config.services.immich.mediaLocation}" = {
|
|
||||||
# device = "${xlib.dirs.services-folder}/immich";
|
|
||||||
# options = [
|
|
||||||
# "bind"
|
|
||||||
# "nofail"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"z ${config.services.immich.mediaLocation} 0755 immich immich -"
|
"z ${config.services.immich.mediaLocation} 0755 immich immich -"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
fileSystems."/var/lib/n8n" = {
|
fileSystems."/var/lib/n8n" = {
|
||||||
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
device = "${xlib.dirs.services-mnt-folder}/n8n";
|
||||||
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"nofail"
|
"nofail"
|
||||||
|
|||||||
@@ -176,14 +176,6 @@ in
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
# fileSystems."${config.services.nextcloud.home}" = {
|
|
||||||
# device = "${xlib.dirs.services-folder}/nextcloud";
|
|
||||||
# options = [
|
|
||||||
# "bind"
|
|
||||||
# "nofail"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"z ${config.services.nextcloud.home} 0750 nextcloud nextcloud -"
|
"z ${config.services.nextcloud.home} 0750 nextcloud nextcloud -"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ in
|
|||||||
|
|
||||||
fileSystems."/var/lib/postgresql" = {
|
fileSystems."/var/lib/postgresql" = {
|
||||||
device = "${xlib.dirs.services-mnt-folder}/postgresql";
|
device = "${xlib.dirs.services-mnt-folder}/postgresql";
|
||||||
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"nofail"
|
"nofail"
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
fileSystems."/var/lib/private/uptime-kuma" = {
|
fileSystems."/var/lib/private/uptime-kuma" = {
|
||||||
device = "${xlib.dirs.services-mnt-folder}/uptime-kuma";
|
device = "${xlib.dirs.services-mnt-folder}/uptime-kuma";
|
||||||
|
fsType = "none";
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"nofail"
|
"nofail"
|
||||||
|
|||||||
@@ -77,18 +77,30 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
fileSystems."/mnt/beets/music" = {
|
systemd.mounts = [
|
||||||
device = "/home/${xlib.device.username}/Music"; # "${xlib.dirs.vetymae-drive}/Users/User/Music"
|
{
|
||||||
options = [
|
enable = true;
|
||||||
"bind"
|
options = "bind,x-systemd.automount,nofail";
|
||||||
"uid=1000"
|
requires = [ "local-fs.target" ];
|
||||||
"gid=1000"
|
type = "none";
|
||||||
"fmask=0077"
|
wantedBy = [ "multi-user.target" ];
|
||||||
"dmask=0077"
|
what = "/home/${xlib.device.username}/Music";
|
||||||
"nofail"
|
where = "/mnt/beets/music";
|
||||||
#"x-systemd.device-timeout=0"
|
}
|
||||||
];
|
];
|
||||||
};
|
# fileSystems."/mnt/beets/music" = {
|
||||||
|
# device = "/home/${xlib.device.username}/Music"; # "${xlib.dirs.vetymae-drive}/Users/User/Music"
|
||||||
|
# fsType = "none";
|
||||||
|
# options = [
|
||||||
|
# # "bind"
|
||||||
|
# "uid=1000"
|
||||||
|
# "gid=1000"
|
||||||
|
# "fmask=0077"
|
||||||
|
# "dmask=0077"
|
||||||
|
# "nofail"
|
||||||
|
# #"x-systemd.device-timeout=0"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"z /mnt/beets 0700 ${xlib.device.username} users -" # beets absolute paths
|
"z /mnt/beets 0700 ${xlib.device.username} users -" # beets absolute paths
|
||||||
|
|||||||
+13
-13
@@ -136,23 +136,23 @@ in
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
client_max_body_size 5G;
|
# client_max_body_size 5G;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
proxy_buffering off;
|
# proxy_buffering off;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
# proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
# proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
proxy_set_header Authorization $http_authorization;
|
# proxy_set_header Authorization $http_authorization;
|
||||||
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
# proxy_set_header Connection "upgrade";
|
||||||
''; # absolute_redirect off;
|
# ''; # absolute_redirect off;
|
||||||
};
|
};
|
||||||
"immich.zeroq.su" = {
|
"immich.zeroq.su" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
@@ -13,7 +13,4 @@
|
|||||||
#../server/open-webui.nix
|
#../server/open-webui.nix
|
||||||
#../services/tts.nix
|
#../services/tts.nix
|
||||||
];
|
];
|
||||||
environment.systemPackages = [
|
|
||||||
pkgs.rovr
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user