feat: different people with different needs
This commit is contained in:
parent
80ffb10191
commit
b3001a54b0
3 changed files with 12 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue