add nextcloud with htts via tailscale/acme-LetsEncrypt

This commit is contained in:
Rob committed 2024-06-05 07:06:45 +00:00
1 parent 5ee39a9556
commit 9b9a0c33c3
2 files changed
+48 -11

No files matched your search

+10 -11
View File
@@ -12,15 +12,16 @@
./hardware-configuration.nix ./hardware-configuration.nix
# meine module # meine module
./modules/cron.nix modules/cron.nix
./modules/users.nix modules/users.nix
./modules/storage.nix modules/storage.nix
./modules/root-programs.nix modules/root-programs.nix
./modules/smb.nix modules/smb.nix
./modules/tailscale.nix modules/tailscale.nix
./modules/tmux.nix modules/tmux.nix
# ./modules/minetest-server.nix modules/nextcloud.nix
# ./modules/wifi.nix ## noch kein device gefunden das geht. das kleine dwa-171 geht nicht # modules/minetest-server.nix
# modules/wifi.nix ## noch kein device gefunden das geht. das kleine dwa-171 geht nicht
]; ];
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
@@ -32,8 +33,6 @@
# boot.loader.grub.device = "/dev/disk/by-label/nixos"; #"/dev/sda"; # or "nodev" for efi only # boot.loader.grub.device = "/dev/disk/by-label/nixos"; #"/dev/sda"; # or "nodev" for efi only
boot.loader.grub.device = "/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_3273P0RAT"; boot.loader.grub.device = "/dev/disk/by-id/ata-TOSHIBA_MK5061GSY_3273P0RAT";
networking.hostName = "bfds"; # Define your hostname. networking.hostName = "bfds"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
+38
View File
@@ -0,0 +1,38 @@
{ pkgs, ... }:
{
services.nextcloud = {
package = pkgs.nextcloud29;
enable = true;
hostName = "bfds.taila388c.ts.net";
config.extraTrustedDomains = [ "bfds" "bfds.local" ];
database.createLocally = true;
config = {
dbtype = "pgsql";
adminpassFile = "/var/lib/nextcloud-pass-files/nc-admin-password";
};
extraApps = {
inherit (pkgs.nextcloud29Packages.apps)
cookbook
notes
;
};
extraAppsEnable = true;
https = true;
};
services.nginx.virtualHosts."bfds.taila388c.ts.net" = {
addSSL = true;
# forceSSL = true;
enableACME = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "rw@boogiedev.net";
certs = {
"bfds.taila388c.ts.net".email = "rw@boogiedev.net";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}