self-hosting/profiles/storage.nix

34 lines
786 B
Nix
Raw Normal View History

2021-11-26 00:14:44 +01:00
{ config, lib, pkgs, ... }:
{
imports = [
../environment.nix
../hardware/hetzner-dedicated-storage1.nix
../modules/openssh.nix
2021-11-29 02:04:29 +01:00
../modules/mailserver.nix
../modules/nginx.nix
2021-12-07 01:55:01 +01:00
../modules/jellyfin.nix
2021-12-08 01:03:24 +01:00
../modules/stb.nix
2021-12-09 09:28:28 +01:00
../modules/monero.nix
2021-12-10 03:02:34 +01:00
../modules/torrents.nix
2021-11-26 00:14:44 +01:00
];
2021-12-07 01:55:01 +01:00
2021-12-09 09:28:28 +01:00
networking.firewall.allowedTCPPorts = [ 80 443 18080 ];
2021-12-10 03:02:34 +01:00
networking.nat.enable = true;
networking.nat.internalInterfaces = [ "ve-+" ];
networking.nat.externalInterface = "enp2s0";
users.users.www-data = {
uid = 993;
isSystemUser = true;
group = config.users.groups.www-data.name;
};
users.groups.www-data = { gid = 991; };
2021-12-26 19:42:23 +01:00
users.users.steam = {
isNormalUser = true;
group = config.users.groups.steam.name;
};
users.groups.steam = { };
2021-11-26 00:14:44 +01:00
}