nixos-config/machines/fuuko/configuration.nix

42 lines
868 B
Nix
Raw Normal View History

2021-01-26 18:42:42 +01:00
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules
../../users/simon
2021-02-24 20:55:07 +01:00
2021-03-06 17:11:36 +01:00
./services/dnsmasq.nix
2021-02-24 20:55:21 +01:00
./services/grafana.nix
2021-03-05 16:12:25 +01:00
./services/media.nix
2021-02-24 20:55:07 +01:00
./services/prometheus.nix
./services/scan.nix
2021-02-19 18:35:44 +01:00
./services/torrent.nix
2021-03-05 15:27:23 +01:00
./services/wordclock-dimmer.nix
2021-01-26 18:42:42 +01:00
];
sbruder = {
wireguard.home.enable = true;
nginx.hardening.enable = true;
};
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."fuuko.home.sbruder.de" = {
enableACME = true;
forceSSL = true;
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
2021-02-24 20:55:07 +01:00
users.users.nginx.extraGroups = [ "keys" ];
2021-01-26 18:42:42 +01:00
networking.hostName = "fuuko";
system.stateVersion = "20.09";
}