Lots of stuff
This commit is contained in:
parent
9115983c81
commit
c15fab234d
17 changed files with 10 additions and 86 deletions
|
@ -2,16 +2,16 @@
|
|||
{
|
||||
imports = [
|
||||
./cfdyndns
|
||||
./fileserver
|
||||
./forgejo
|
||||
./jellyfin
|
||||
./mysql
|
||||
./nextcloud
|
||||
./nfs
|
||||
./owncast
|
||||
./transmission
|
||||
./vaultwarden
|
||||
./webserver
|
||||
];
|
||||
|
||||
options.system = with lib; {
|
||||
server.enable = mkEnableOption "Enable server apps and services";
|
||||
};
|
||||
options.system.server.enable = with lib; mkEnableOption "Enable server apps and services";
|
||||
}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.system.fileserver.enable = lib.mkEnableOption "Enable file serving services";
|
||||
|
||||
imports = [
|
||||
./jellyfin
|
||||
./nextcloud
|
||||
./nfs
|
||||
];
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
imports = [ ./nginx ];
|
||||
|
||||
config = lib.mkIf config.system.fileserver.enable {
|
||||
config = lib.mkIf config.system.server.enable {
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud30;
|
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.nfs.server = {
|
||||
enable = config.system.fileserver.enable;
|
||||
enable = config.system.server.enable;
|
||||
exports = ''
|
||||
/export/KittyNFS/Files *(rw,sync,no_subtree_check)
|
||||
/export/KittyNFS/Media *(rw,sync,no_subtree_check)
|
|
@ -1,9 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
|
||||
|
||||
imports = [
|
||||
./acme
|
||||
./nginx
|
||||
];
|
||||
|
||||
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue