From 6177c2ea4f9a77048a2a6a2fd6639bca2314b183 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 9 Jan 2025 20:02:20 +0300 Subject: [PATCH] Home: Remove nextcloud. --- home/file/waybar/config/default.nix | 4 +-- home/program/firefox/default.nix | 2 -- host/x86_64-linux/home/Bind.nix | 1 - host/x86_64-linux/home/Nextcloud.nix | 30 ---------------------- host/x86_64-linux/home/Postgres.nix | 1 - host/x86_64-linux/home/nginx/Nextcloud.nix | 20 --------------- 6 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 host/x86_64-linux/home/Nextcloud.nix delete mode 100644 host/x86_64-linux/home/nginx/Nextcloud.nix diff --git a/home/file/waybar/config/default.nix b/home/file/waybar/config/default.nix index 1b62920..943a4f8 100644 --- a/home/file/waybar/config/default.nix +++ b/home/file/waybar/config/default.nix @@ -44,12 +44,12 @@ in }; "clock#time" = { format = "{:%H:%M}"; - on-click = "xdg-open https://cloud.voronind.com/apps/calendar/"; + on-click = "thunderbird"; tooltip-format = "{calendar}"; }; "clock#date" = { format = "{:%a %d}"; - on-click = "xdg-open https://cloud.voronind.com/apps/calendar/"; + on-click = "thunderbird"; tooltip-format = "{calendar}"; }; battery = { diff --git a/home/program/firefox/default.nix b/home/program/firefox/default.nix index 186a6fe..4755b35 100644 --- a/home/program/firefox/default.nix +++ b/home/program/firefox/default.nix @@ -17,7 +17,6 @@ let (mkBookmark "WorkGit" "https://git.fmp.fsight.world") (mkBookmark "WorkBoard" "https://support.fsight.ru") (mkBookmark "Hass" "https://iot.voronind.com") - (mkBookmark "Cloud" "https://cloud.voronind.com") (mkBookmark "GitHub" "https://github.com/notifications") ]; @@ -70,7 +69,6 @@ let ]; darkModeIgnore = [ - "cloud.voronind.com" "git.voronind.com" "github.com" "home.voronind.com" diff --git a/host/x86_64-linux/home/Bind.nix b/host/x86_64-linux/home/Bind.nix index 4970e7d..f86721b 100644 --- a/host/x86_64-linux/home/Bind.nix +++ b/host/x86_64-linux/home/Bind.nix @@ -16,7 +16,6 @@ let (mkBind "kavita" "/var/lib/kavita") (mkBind "letsencrypt" "/etc/letsencrypt") (mkBind "murmur" "/var/lib/murmur") - (mkBind "nextcloud" "/var/lib/nextcloud") (mkBind "ovpn" "/var/lib/ovpn") (mkBind "paperless" "/var/lib/paperless") (mkBind "postgres" "/var/lib/postgresql") diff --git a/host/x86_64-linux/home/Nextcloud.nix b/host/x86_64-linux/home/Nextcloud.nix deleted file mode 100644 index e5caebf..0000000 --- a/host/x86_64-linux/home/Nextcloud.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, pkgs, ... }: -{ - services.nextcloud = { - enable = true; - database.createLocally = true; - extraAppsEnable = true; - hostName = "cloud.voronind.com"; - https = true; - # package = pkgs.nextcloud29; - # phpOptions = { - # memory_limit = lib.mkForce "20G"; - # }; - config = { - adminpassFile = "${pkgs.writeText "NextcloudPassword" "root"}"; - adminuser = "root"; - dbname = "nextcloud"; - # dbpassFile = "${pkgs.writeText "NextcloudDbPassword" "nextcloud"}"; - dbtype = "pgsql"; - dbuser = "nextcloud"; - }; - extraApps = { inherit (config.services.nextcloud.package.packages.apps) contacts calendar; }; - settings = { - allow_local_remote_servers = true; - trusted_domains = [ "cloud.voronind.com" ]; - trusted_proxies = [ - # proxy.address - ]; - }; - }; -} diff --git a/host/x86_64-linux/home/Postgres.nix b/host/x86_64-linux/home/Postgres.nix index 62030f2..8806e95 100644 --- a/host/x86_64-linux/home/Postgres.nix +++ b/host/x86_64-linux/home/Postgres.nix @@ -11,7 +11,6 @@ configurations = [ "forgejo" "invidious" - "nextcloud" "paperless" ]; diff --git a/host/x86_64-linux/home/nginx/Nextcloud.nix b/host/x86_64-linux/home/nginx/Nextcloud.nix deleted file mode 100644 index e386a3f..0000000 --- a/host/x86_64-linux/home/nginx/Nextcloud.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ ... }: -{ - "cloud.voronind.com" = { - locations."~ ^/(settings/admin|settings/users|settings/apps|login|api)".extraConfig = '' - allow 10.0.0.0/8; - allow fd09:8d46:b26::/48; - deny all; - try_files $uri $uri/ /index.php$request_uri; - ''; - - extraConfig = '' - listen 443 ssl; - - ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/voronind.com/privkey.pem; - include /etc/letsencrypt/conf/options-ssl-nginx.conf; - ssl_dhparam /etc/letsencrypt/conf/ssl-dhparams.pem; - ''; - }; -}