feat: different people with different needs

This commit is contained in:
Teesh 2026-02-05 11:09:46 +02:00
parent 80ffb10191
commit b3001a54b0
3 changed files with 12 additions and 4 deletions

View file

@ -1,9 +1,9 @@
{ ... }:
{ config, ... }:
{
flake.modules.nixos.server = { pkgs, ... }: {
environment.systemPackages = [ pkgs.cloudflared ];
services.cloudflared.enable = true;
services.cloudflared.enable = config.flake.meta.web.domain.has;
};
}

View file

@ -1,5 +1,8 @@
{ inputs, ... }:
{ inputs, ... }@inp:
let
flk = inp.config.flake;
in
{
flake.modules.nixos.server = { pkgs, lib, config, ... }: {
imports = [
@ -19,7 +22,7 @@
credentialsFile = "/run/secrets/cloudflare/copyparty";
default = "http_status:404";
ingress = {
"files.teesh.dev" = {
"files.${flk.meta.web.domain.domain}" = {
service = "http://localhost:3293";
};
};

View file

@ -19,6 +19,11 @@ rec {
password = "password";
};
flake.meta.web.domain = {
has = true;
domain = "teesh.dev";
};
flake.meta.location = "/home/${flake.meta.user.name}/dotfiles";
flake.meta.stateVersion = "25.11";
}