add seafile

This commit is contained in:
Tyler Starr 2023-11-05 16:21:02 -08:00
parent 2d2c1af055
commit 3db1173f4a
4 changed files with 21 additions and 1 deletions

View File

@ -95,6 +95,7 @@
peripherals.enable = true;
samba-client.enable = true;
virt-manager.enable = true;
seafile-server.enable = false;
};
system = {
ssh.enable = true;

View File

@ -114,6 +114,9 @@
"rss.tstarr.us" = (SSL // {
locations."/".proxyPass = "http://localhost:8081/";
});
"wiki.tstarr.us" = (SSL // {
locations."/".proxyPass = "http://localhost:8082/";
});
"rssbridge.tstarr.us" = (SSL // {
locations."/".proxyPass = "http://localhost:3000/";
});
@ -137,6 +140,7 @@
};
services = {
jellyfin.enable = true;
seafile-server.enable = true;
};
system = {
terminal.enable = true;

View File

@ -1,4 +1,4 @@
{ ... }:
{
imports = [ ./samba-client.nix ./jellyfin.nix ./virt-manager.nix ./peripherals.nix ];
imports = [ ./seafile-server.nix ./samba-client.nix ./jellyfin.nix ./virt-manager.nix ./peripherals.nix ];
}

View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, pkgs-unstable, user, ... }:
let
cfg = config.modules.services.seafile-server;
in {
options.modules.services.seafile-server.enable = lib.mkEnableOption "seafile-server";
config = lib.mkIf cfg.enable {
services.seafile = {
enable = true;
adminEmail = "starrtyler88@gmail.com";
initialAdminPassword = "dude";
ccnetSettings.General.SERVICE_URL = "https://wiki.tstarr.us";
};
};
}