added nextcloud, not working.

This commit is contained in:
Elias Gasparis 2025-05-12 15:27:11 +08:00
parent 6748c4050a
commit bc78646407
4 changed files with 13 additions and 9 deletions

View file

@ -3,9 +3,10 @@
My test system.
## Goals
- Learn Nix.
- Attempt to make homelab, a la [Yunohost](https://yunohost.org/)[^1]...but declarative, reproducable
- Learn NixOS.
- Attempt to make basic media homelab, a la [Yunohost](https://yunohost.org/)[^1]...but declarative, reproducable
- Try to avoid Docker
- No flakes
## Tasks
- [X] ZFS for root file system
@ -13,9 +14,9 @@ My test system.
- [X] VPS Caddy reverse proxy --> NixOS machine
- [X] Setup Jellyfin
- [X] Setup calibre-web
- [ ] Setup Transmission
- [X] Setup Transmission
- [ ] Setup Nextcloud
- [ ] Setup systemwide auth system - LDAP? OAuth?
- [ ] Setup systemwide auth system - LDAP? OAuth? OR don't do this
## System Information
```
@ -41,4 +42,4 @@ My test system.
▝▀▀▀ ▀▀▀▀▘ ▀▀▀▘
```
[^1]: No shade on Yunohost. It's a great project and got me into self-hosting. I just want to see if I can spread my wings and fly. Setting up a new Debian server from scratch is kinda annoying. I'd rather not do that again.
[^1]: No shade on [Yunohost](https://yunohost.org/). It's a great project and got me into self-hosting. I just want to see if I can spread my wings and fly. Setting up a new Debian server from scratch is kinda annoying. I'd rather not do that again.

View file

@ -16,6 +16,7 @@
./services/glances.nix
./services/fail2ban.nix
./services/transmission.nix
./services/nextcloud.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -49,7 +50,6 @@
# ZFS
services.zfs.autoScrub.enable = true;
# Nix settings
nix = {
settings = {

View file

@ -1,6 +1,9 @@
#!/run/current-system/sw/bin/bash
sudo systemctl stop postgresql
sudo systemctl stop nextcloud-setup
sudo systemctl stop nextcloud-cron
sudo systemctl stop phpfm-nextcloud
sudo systemctl stop redis-nextcloud
sudo rm -rf /var/lib/nextcloud
sudo rm -rf /var/lib/postgresql

View file

@ -5,10 +5,10 @@ services.nextcloud = {
configureRedis = true;
package = pkgs.nextcloud30;
hostName = "nextcloud.knossos";
datadir = "/var/lib/nextcloud/";
datadir = "/home/elias/nextcloud/";
settings = {
overwriteprotocol = "https";
trusted_proxies = [ "localhost" "127.0.0.1" "100.122.246.61" ];
trusted_proxies = [ "localhost" "127.0.0.1" "100.82.24.89" ];
#trusted_domains = [ "knossos.zebra-rudd.ts.net" ];
};
config = {
@ -16,7 +16,7 @@ services.nextcloud = {
dbuser = "nextcloud";
dbhost = "/run/postgresql"; # nextcloud will add /.s.PGSQL.5432 by itself
dbname = "nextcloud";
adminpassFile = "/var/nextcloud-admin-pass";
adminpassFile = "/var/lib/secrets/nextcloud-admin-pass";
adminuser = "admin";
};
};