add forgejo

This commit is contained in:
Chris Kruining 2025-08-07 14:09:02 +02:00
parent a8783b4709
commit e011b893e0
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
4 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ config, lib, namespace, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.media.nfs;
in
{
options.${namespace}.media.nfs = {
enable = mkEnableOption "Enable NFS";
};
config = mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 2049 ];
services.nfs.server = {
enable = true;
exports = ''
/var/media manwe(rw,sync,no_subtree_check,fsid=0)
'';
};
};
}