5082521524
/ update-readme (push) Has been cancelled
- Introduced `default-creds` module for managing default credentials with Umami integration. - Added `fail2ban` module for brute-force attack protection with configurable ban times. - Created `firewall` module to enable and configure basic firewall settings. - Implemented `gitea` module for self-hosted Git service with PostgreSQL backend. - Developed `glance` module for a customizable dashboard with various widgets and themes. - Added `iknowyou` module for a self-hosted password manager with production and demo environments. - Introduced `kernel-hardening` module for enhancing kernel security settings. - Created `mazanoke` module for a simple web application with Nginx integration. - Added `mealie` module for a self-hosted meal planning application. - Implemented `stirling-pdf` module for PDF generation service. - Developed `umami` module for self-hosted analytics with secret management. - Added `ssh` module for secure SSH configuration with user restrictions. - Introduced `nixy` theme for a customized aesthetic experience across services.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (import ./mk-container.nix {inherit lib config;}) mkContainer;
|
|
domain = config.var.domain;
|
|
in {
|
|
imports = [
|
|
(mkContainer {
|
|
name = "def-creds";
|
|
hostIp = "10.233.6.1";
|
|
containerIp = "10.233.6.2";
|
|
nixosConfig = {...}: {
|
|
imports = [inputs.default-creds.nixosModules.default];
|
|
services.default-creds = {
|
|
enable = true;
|
|
port = 8087;
|
|
};
|
|
networking.firewall.allowedTCPPorts = [8087];
|
|
systemd.services.default-creds.environment = {
|
|
HOST = lib.mkForce "0.0.0.0";
|
|
PUBLIC_UMAMI_URL = "https://umami.${domain}";
|
|
PUBLIC_UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";
|
|
UMAMI_URL = "https://umami.${domain}";
|
|
UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";
|
|
};
|
|
system.stateVersion = "24.05";
|
|
};
|
|
})
|
|
];
|
|
|
|
services.default-creds.enable = lib.mkForce false;
|
|
services.cloudflared.tunnels."${config.var.tunnelId}".ingress."default-creds.${config.var.domain}" = "http://10.233.6.2:8087";
|
|
}
|