Compare commits
2 Commits
44b9b56204
...
26266dc088
Author | SHA1 | Date |
---|---|---|
Ingolf Wagner | 26266dc088 | |
Ingolf Wagner | a4f2b06d1e |
|
@ -5,7 +5,7 @@
|
|||
rbackup.plans = {
|
||||
nextcloud = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@robi:/var/lib/nextcloud/";
|
||||
src = "root@orbi:/var/lib/nixos-containers/nextcloud";
|
||||
dst = "/mirror/nextcloud";
|
||||
};
|
||||
taskwarrior = {
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#./borg.nix
|
||||
#./codimd.nix
|
||||
#./gitea.nix
|
||||
./nextcloud.nix
|
||||
#./packages.nix
|
||||
#./taskserver.nix
|
||||
#./vaultwarden.nix
|
||||
|
@ -29,6 +28,7 @@
|
|||
#./media-transmission.nix
|
||||
./media-transmission2.nix
|
||||
./media-arr.nix
|
||||
./media-nextcloud.nix
|
||||
|
||||
#./sync-opentracker.nix
|
||||
#./sync-torrent.nix
|
||||
|
|
|
@ -100,6 +100,18 @@ in
|
|||
compression = "lz4";
|
||||
};
|
||||
};
|
||||
"nextcloud" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/var/lib/nixos-containers/nextcloud";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot:hourly" = toString true;
|
||||
"com.sun:auto-snapshot:daily" = toString true;
|
||||
#"com.sun:auto-snapshot:weekly" = false;
|
||||
#"com.sun:auto-snapshot:monthly" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -122,19 +134,6 @@ in
|
|||
#"com.sun:auto-snapshot:monthly" = false;
|
||||
};
|
||||
};
|
||||
# todo make sure this disk has some minimum space
|
||||
"nextcloud" = {
|
||||
type = "zfs_fs";
|
||||
mountpoint = "/var/lib/nextcloud";
|
||||
options = {
|
||||
mountpoint = "legacy";
|
||||
compression = "lz4";
|
||||
"com.sun:auto-snapshot:hourly" = toString true;
|
||||
"com.sun:auto-snapshot:daily" = toString true;
|
||||
#"com.sun:auto-snapshot:weekly" = false;
|
||||
#"com.sun:auto-snapshot:monthly" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ let
|
|||
nextcloudUid = 1000;
|
||||
nextcloudGid = 1000;
|
||||
nextcloudPort = 8080;
|
||||
nextcloudHostName = "cloud.ingolf-wagner.de";
|
||||
nextcloudHostName = "nextcloud.ingolf-wagner.de";
|
||||
|
||||
phpPackage = pkgs.php73;
|
||||
nextcloudPackage = pkgs.nextcloud28;
|
||||
|
@ -17,10 +17,6 @@ let
|
|||
in
|
||||
{
|
||||
|
||||
|
||||
# host nginx
|
||||
# ----------
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.firewall.allowedUDPPorts = [ 80 443 ];
|
||||
|
||||
|
@ -85,26 +81,6 @@ in
|
|||
mountPoint = "/run/secrets/nextcloud_database_password";
|
||||
isReadOnly = true;
|
||||
};
|
||||
|
||||
#home = {
|
||||
# # make sure this folder exist on the host
|
||||
# hostPath = toString "/var/lib/nextcloud";
|
||||
# mountPoint = "/var/lib/nextcloud";
|
||||
# isReadOnly = false;
|
||||
#};
|
||||
#db = {
|
||||
# # make sure this folder exist on the host
|
||||
# hostPath = toString "/var/lib/nextcloud_mysql";
|
||||
# mountPoint = "/var/lib/mysql";
|
||||
# isReadOnly = false;
|
||||
#};
|
||||
#media = {
|
||||
# #mountPoint = toString config.services.syncthing.folders.media.path;
|
||||
# #hostPath = toString config.services.syncthing.folders.media.path;
|
||||
# mountPoint = "/media/syncthing/media";
|
||||
# hostPath = "/media/media";
|
||||
# isReadOnly = true;
|
||||
#};
|
||||
};
|
||||
|
||||
privateNetwork = false;
|
||||
|
@ -132,9 +108,6 @@ in
|
|||
recommendedTlsSettings = lib.mkDefault true;
|
||||
};
|
||||
|
||||
#networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
#networking.firewall.allowedUDPPorts = [ 80 ];
|
||||
|
||||
# nextcloud database
|
||||
# ==================
|
||||
#
|
||||
|
@ -198,8 +171,6 @@ in
|
|||
enable = true;
|
||||
package = nextcloudPackage;
|
||||
autoUpdateApps.enable = true;
|
||||
# nginx.enable = true;
|
||||
# enableBrokenCiphersForSSE = false; # see https://github.com/NixOS/nixpkgs/pull/198470
|
||||
hostName = nextcloudHostName;
|
||||
logLevel = 2;
|
||||
https = true;
|
|
@ -12,7 +12,7 @@
|
|||
./borg.nix
|
||||
./codimd.nix
|
||||
./gitea.nix
|
||||
./nextcloud.nix
|
||||
#./nextcloud.nix
|
||||
./packages.nix
|
||||
./taskserver.nix
|
||||
./vaultwarden.nix
|
||||
|
|
Loading…
Reference in New Issue