From e0de02a8737d762658341d4012749e5bfcbe01b5 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Fri, 18 Nov 2022 15:33:26 +0100 Subject: [PATCH] chore: more changes to filesystems --- servers/niflheim/default.nix | 24 ++++++++++++------------ servers/niflheim/filesystems.nix | 8 ++++++++ servers/niflheim/partitions.sh | 2 +- shared/services/nextcloud/default.nix | 6 ++++++ 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/servers/niflheim/default.nix b/servers/niflheim/default.nix index 42448d7..4a25f07 100644 --- a/servers/niflheim/default.nix +++ b/servers/niflheim/default.nix @@ -14,18 +14,18 @@ personal = { services = { - authentik = { - enable = config.personal.services.enable; - }; - media = { - enable = config.personal.services.enable; - }; - minecraft = { - enable = config.personal.services.enable; - }; - nextcloud = { - enable = config.personal.services.enable; - }; + # authentik = { + # enable = config.personal.services.enable; + # }; + # media = { + # enable = config.personal.services.enable; + # }; + # minecraft = { + # enable = config.personal.services.enable; + # }; + # nextcloud = { + # enable = config.personal.services.enable; + # }; tailscale = { enable = config.personal.services.enable; }; diff --git a/servers/niflheim/filesystems.nix b/servers/niflheim/filesystems.nix index 19f30ef..56c5f5e 100644 --- a/servers/niflheim/filesystems.nix +++ b/servers/niflheim/filesystems.nix @@ -45,6 +45,14 @@ ]; }; + fileSystems."/var/lib/nextcloud" = { + device = "/dev/disk/by-label/nextcloud"; + fsType = "ext4"; + options = [ + "noatime" + ]; + }; + fileSystems."/var/lib/nzbget" = { device = "/dev/disk/by-label/nzbget"; fsType = "ext4"; diff --git a/servers/niflheim/partitions.sh b/servers/niflheim/partitions.sh index 85ffcf3..d095a2f 100755 --- a/servers/niflheim/partitions.sh +++ b/servers/niflheim/partitions.sh @@ -161,7 +161,7 @@ mount /dev/disk/by-partlabel/boot1 /mnt/boot # STORAGE # -for PARTITION in acme nzbget jellyfin radarr sonarr lidarr readarr bazarr prowlarr; do +for PARTITION in acme nextcloud nzbget jellyfin radarr sonarr lidarr readarr bazarr prowlarr; do echo "-----> Create ${PARTITION} volume" lvcreate -y --size 5G --name ${PARTITION} system diff --git a/shared/services/nextcloud/default.nix b/shared/services/nextcloud/default.nix index 6398637..7154b2c 100644 --- a/shared/services/nextcloud/default.nix +++ b/shared/services/nextcloud/default.nix @@ -111,6 +111,12 @@ in # # url = "https://github.com/nextcloud/cookbook/releases/download/v0.10.1/Cookbook-0.10.1.tar.gz"; # # version = "0.10.1"; # # }; + # # drawio = pkgs.fetchNextcloudApp { + # # name = "drawio"; + # # sha256 = ""; + # # url = "https://github.com/jgraph/drawio-nextcloud/releases/download/v1.0.5/drawio-v1.0.5.tar.gz"; + # # version = "1.0.5"; + # # }; # # guests = pkgs.fetchNextcloudApp { # # name = "guests"; # # sha256 = "";