added nextcloud, not working.
This commit is contained in:
parent
6748c4050a
commit
bc78646407
4 changed files with 13 additions and 9 deletions
11
README.md
11
README.md
|
@ -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.
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue